Add capacity overview with host resource history

This commit is contained in:
2026-10-05 12:06:29 -04:00
parent 7c76851252
commit 09ef8c6ec8
19 changed files with 845 additions and 10 deletions
+7
View File
@@ -0,0 +1,7 @@
import { json } from '@sveltejs/kit';
import { parseCapacityQuery } from '$lib/capacity.js';
import { capacityPage } from '$lib/server/hosts/capacity-page.js';
export async function GET({ url }: { url: URL }) {
return json(await capacityPage(parseCapacityQuery(url.searchParams)), { headers: { 'cache-control': 'no-store' } });
}