Files
0pt/app/api/health/route.ts
T
adminandClaude Opus 4.8 15c65a584c feat(api): Vercel-native platform API + Postgres schema
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>
2026-06-24 17:56:30 +02:00

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(),
});
}