Publish a slot catalog so the dashboard can import keys, and keep local placeholders when a slot is empty. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { STATIC_IMAGE_SLOT_CATALOG } from "@/lib/static-images";
|
|
|
|
export function GET() {
|
|
return NextResponse.json(
|
|
{ slots: STATIC_IMAGE_SLOT_CATALOG },
|
|
{
|
|
headers: {
|
|
"Access-Control-Allow-Origin": "*",
|
|
"Cache-Control": "public, max-age=60",
|
|
},
|
|
},
|
|
);
|
|
}
|