health panel implementation

This commit is contained in:
Storme-bit
2026-04-17 23:32:33 -07:00
parent afae2af85b
commit 8a5caf7399
4 changed files with 42 additions and 2 deletions

View File

@@ -188,4 +188,10 @@ export async function updateSettings(updates) {
});
if (!res.ok) throw new Error(`Failed to update settings: ${res.status}`);
return res.json();
}
export async function getServiceHealth() {
const res = await fetch(`${BASE_URL}/health/services`);
if (!res.ok) throw new Error(`Failed to fetch health: ${res.status}`);
return res.json();
}