2026-08-25 07:51:38 +02:00
|
|
|
import { NextResponse } from "next/server";
|
|
|
|
|
import { getRecordingLibraryStats } from "@/lib/db/queries/stats";
|
2026-08-26 08:45:15 +02:00
|
|
|
import { withRouteLogging } from "@/lib/api/with-route-logging";
|
2026-08-25 07:51:38 +02:00
|
|
|
|
2026-08-26 08:45:15 +02:00
|
|
|
export const GET = withRouteLogging("stats.recordings", async () => {
|
2026-08-25 07:51:38 +02:00
|
|
|
const stats = await getRecordingLibraryStats();
|
|
|
|
|
return NextResponse.json(stats);
|
2026-08-26 08:45:15 +02:00
|
|
|
});
|