Files
sexy/app/api/stats/sessions/route.ts
T
valknarandClaude Sonnet 5 1119c8eea0
CI / Static checks (push) Successful in 1m27s
CI / Build and push image (push) Skipped
Initial implementation of Bluetooth toy control app
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
2026-08-25 07:51:38 +02:00

8 lines
221 B
TypeScript

import { NextResponse } from "next/server";
import { getSessionsSummary } from "@/lib/db/queries/stats";
export async function GET() {
const summary = await getSessionsSummary();
return NextResponse.json(summary);
}