9router / src /app /api /health /route.js
2api
feat: configurable stream stall timeout + per-provider UI
88c4c60
Raw
History Blame Contribute Delete
410 Bytes
import { NextResponse } from "next/server";
const CORS_HEADERS = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, OPTIONS",
"Access-Control-Allow-Headers": "*",
};
export async function GET() {
return NextResponse.json({ ok: true }, { headers: CORS_HEADERS });
}
export async function OPTIONS() {
return new NextResponse(null, { status: 204, headers: CORS_HEADERS });
}