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();
}

View File

@@ -14,6 +14,8 @@ export default defineConfig({
'/models': 'http://192.168.0.205:4000',
'/projects': 'http://192.168.0.205:4000',
'/episodes': 'http://192.168.0.205:4000',
'/settings': 'http://192.168.0.205:4000',
'/health': 'http://192.168.0.205:4000',
},
},
});