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.

512 B
Raw Blame
import { createFolder } from "@/server/cinema";
import { FolderCreate, asCinemaViewer, body } from "@/server/cinema-schemas";

export async function POST(request: Request, ctx: RouteContext<"/api/cinema/projects/[id]/folders">) {
  return asCinemaViewer(
    request,
    async () => {
      const { id } = await ctx.params;
      const input = await body(request, FolderCreate, "Give the folder a name");
      return Response.json(createFolder(id, input), { status: 201 });
    },
    { change: true },
  );
}