diff --git a/maternal-web/app/api/health/route.ts b/maternal-web/app/api/health/route.ts new file mode 100644 index 0000000..73ccb77 --- /dev/null +++ b/maternal-web/app/api/health/route.ts @@ -0,0 +1,13 @@ +import { NextResponse } from 'next/server'; + +/** + * Health check endpoint for network status detection + * Returns 200 OK when the app is reachable + */ +export async function GET() { + return NextResponse.json({ status: 'ok', timestamp: new Date().toISOString() }); +} + +export async function HEAD() { + return new NextResponse(null, { status: 200 }); +}