2026-04-10 07:16:14 -04:00
|
|
|
import { NextResponse } from "next/server";
|
|
|
|
|
|
2026-05-21 03:30:59 -04:00
|
|
|
const CORS_HEADERS = {
|
|
|
|
|
"Access-Control-Allow-Origin": "*",
|
|
|
|
|
"Access-Control-Allow-Methods": "GET, OPTIONS",
|
|
|
|
|
"Access-Control-Allow-Headers": "*",
|
|
|
|
|
};
|
|
|
|
|
|
2026-04-10 07:16:14 -04:00
|
|
|
export async function GET() {
|
2026-05-21 03:30:59 -04:00
|
|
|
return NextResponse.json({ ok: true }, { headers: CORS_HEADERS });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function OPTIONS() {
|
|
|
|
|
return new NextResponse(null, { status: 204, headers: CORS_HEADERS });
|
2026-04-10 07:16:14 -04:00
|
|
|
}
|