Files
sexy/app/api/health/route.ts
T

12 lines
297 B
TypeScript
Raw Normal View History

import { NextResponse } from "next/server";
import { sqlite } from "@/lib/db/client";
export async function GET() {
try {
sqlite.prepare("select 1").get();
return NextResponse.json({ status: "ok" });
} catch {
return NextResponse.json({ status: "error" }, { status: 500 });
}
}