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.

459 B
Raw Blame
import { duplicateSkill, SkillError } from "@/server/skills";

/** Copy a skill into My skills (the way to change a built-in). */
export async function POST(_req: Request, ctx: RouteContext<"/api/assist/skills/[name]/duplicate">) {
  try {
    return Response.json(duplicateSkill((await ctx.params).name), { status: 201 });
  } catch (e) {
    return Response.json({ error: (e as Error).message }, { status: e instanceof SkillError ? e.status : 500 });
  }
}