Add hobby stats and graphs to btop

This commit is contained in:
SirBlob committed 2026-11-01 21:50:05 -05:00
1 parent 4a52320d4e
commit 5f5d24cb2d
17 files changed
+571 -13

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import { json } from '@sveltejs/kit';
import { getHobbyStats } from '#lib/server/btopHobbies';
import type { RequestHandler } from './$types';
export const GET: RequestHandler = async () => {
return json(await getHobbyStats(), { headers: { 'Cache-Control': 'no-cache' } });
};