Initial SeConectai briefing system

This commit is contained in:
2026-10-04 10:42:23 -03:00
commit 45cd8d2f03
163 changed files with 12659 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { NextResponse } from "next/server";
import { db } from "@/lib/db";
export const runtime = "nodejs";
export async function GET() {
try {
await db.$queryRaw`SELECT 1`;
return NextResponse.json({
ok: true,
app: "ok",
db: "ok",
checkedAt: new Date().toISOString()
});
} catch {
return NextResponse.json(
{
ok: false,
app: "ok",
db: "error",
checkedAt: new Date().toISOString()
},
{ status: 503 }
);
}
}