juntekim.com/stripe_to_invoice/app/api/db-test/route.ts
2025-12-31 00:02:22 +00:00

9 lines
248 B
TypeScript

// app/api/db-test/route.ts
import { db } from "@/lib/db";
import { sql } from "drizzle-orm";
import { NextResponse } from "next/server";
export async function GET() {
await db.execute(sql`select 1`);
return NextResponse.json({ ok: true });
}