Next.js app with a browser-side buttplug/buttplug-wasm control layer (server never touches real-time device commands), SQLite storage via Drizzle, single-secret auth, recordings/replay with device remapping, a usage stats dashboard, Docker deployment, and Gitea CI. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W8WkFF5ppURBAB918593Eb
12 lines
297 B
TypeScript
12 lines
297 B
TypeScript
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 });
|
|
}
|
|
}
|