← back to Stayclaim
src/app/api/health/route.ts
15 lines
/**
* DEPRECATED 2026-05-04: this path /api/health is nginx-routed to Site Factory
* on Kamatera (per `feedback_pastdoor_route_collisions.md`). The real handler
* lives at /api/pastdoor-health/route.ts. Returning a 410 here so any local
* dev (where nginx isn't in the way) hitting the old path notices.
*/
import { NextResponse } from 'next/server';
export async function GET() {
return NextResponse.json({
error: 'gone',
message: '/api/health was renamed to /api/pastdoor-health (route-prefix collision with Site Factory). Update your client.',
}, { status: 410 });
}