first commit

This commit is contained in:
2026-06-10 18:30:46 +02:00
parent 3e7b0ae2e0
commit cabd4803a4
39 changed files with 3635 additions and 81 deletions
+14
View File
@@ -0,0 +1,14 @@
import { NextResponse } from "next/server";
import { checkDbConnection } from "@/lib/db";
export async function GET() {
const dbHealthy = await checkDbConnection();
return NextResponse.json(
{
status: dbHealthy ? "ok" : "degraded",
db: dbHealthy ? "connected" : "unavailable",
},
{ status: dbHealthy ? 200 : 503 },
);
}