17 lines
452 B
TypeScript
17 lines
452 B
TypeScript
import { STATIC_IMAGE_SLOTS } from "@/lib/static-images";
|
|
|
|
const headers = {
|
|
"Access-Control-Allow-Origin": "*",
|
|
"Access-Control-Allow-Methods": "GET, OPTIONS",
|
|
"Access-Control-Allow-Headers": "Content-Type",
|
|
"Cache-Control": "public, max-age=60",
|
|
};
|
|
|
|
export async function OPTIONS() {
|
|
return new Response(null, { status: 204, headers });
|
|
}
|
|
|
|
export async function GET() {
|
|
return Response.json({ slots: STATIC_IMAGE_SLOTS }, { headers });
|
|
}
|