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.

503 B
Raw Blame
import { photoProjectChange } from "@/server/photo-apps-http";
import { deleteUserPack } from "@/server/photodump";

/** Delete one of your own packs (an account's own only: another's reads as not found). */
export async function DELETE(request: Request, ctx: RouteContext<"/api/photodump/packs/[id]">) {
  const { id } = await ctx.params;
  return photoProjectChange(request, () => (deleteUserPack(id) ? new Response(null, { status: 204 }) : Response.json({ error: "Not found" }, { status: 404 })));
}