Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

714 B
Raw Blame
// Route entry for /api/widgets/:id/duplicate: Vercel resolves to this file
// via the rewrite in vercel.json. Delegates to the action dispatcher so all
// duplicate logic lives in one place ([action].js → handleDuplicate).
//
// This file used to carry its own copy of the clone query, and that copy
// omitted the `id` column. widgets.id is `text not null` with no default, so
// every authenticated Duplicate click died on a not-null violation and the
// dashboard surfaced a bare 500. Delegating removes the second copy entirely.

import dispatcher from './[action].js';

export default function handler(req, res) {
	req.query = { ...(req.query || {}), action: 'duplicate' };
	return dispatcher(req, res);
}