Route Handlers (Vercel Functions): /api/health, /api/estimates (single-source estimate math, ore), /api/catalog, /api/sources (legal sourcing map). sql/001_init.sql = full docs/03 data model (entities + bridge_provenance + platform tables, pgvector). Ready to wire Vercel Postgres. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
13 lines
423 B
TypeScript
13 lines
423 B
TypeScript
import { NextResponse } from "next/server";
|
|
|
|
// GET /api/health — platform liveness (docs/04). DB/queue wired when provisioned.
|
|
export async function GET() {
|
|
return NextResponse.json({
|
|
ok: true,
|
|
service: "0pt-web",
|
|
db: Boolean(process.env.DATABASE_URL) ? "configured" : "not_configured",
|
|
queue: Boolean(process.env.REDIS_URL) ? "configured" : "not_configured",
|
|
ts: new Date().toISOString(),
|
|
});
|
|
}
|