Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

380 B
Raw Blame
import { duplicateCanvas } from "@/server/canvas";

/** "Copy of {name}", with the same nodes and results. */
export async function POST(_req: Request, ctx: RouteContext<"/api/canvases/[id]/duplicate">) {
  const { id } = await ctx.params;
  const c = duplicateCanvas(id);
  return c ? Response.json(c, { status: 201 }) : Response.json({ error: "Not found" }, { status: 404 });
}