Add hobby stats and graphs to btop
This commit is contained in:
1 parent
4a52320d4e
commit
5f5d24cb2d
17 files changed
+571
-13
No files matched your search
@@ -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' } });
|
||||
};
|
||||
Reference in new issue
Block a user