feat: add image project dashboard and canvas editor
Verify and deploy production / verify-and-deploy (push) Successful in 2m34s

This commit is contained in:
2026-10-05 15:20:43 +08:00
parent e961e3091b
commit 276a8ae473
12 changed files with 675 additions and 203 deletions
+16
View File
@@ -0,0 +1,16 @@
import { NextResponse } from "next/server";
import { getImageProject, updateImageProject } from "../../../../lib/image-projects";
import { errorResponse } from "../../../../lib/http";
export const runtime = "nodejs";
type Context = { params: Promise<{ id: string }> };
export async function GET(_: Request, context: Context) {
try { return NextResponse.json({ project: await getImageProject((await context.params).id) }); }
catch (error) { return errorResponse(error); }
}
export async function PUT(request: Request, context: Context) {
try { return NextResponse.json({ project: await updateImageProject((await context.params).id, await request.json()) }); }
catch (error) { return errorResponse(error); }
}