health panel implementation
This commit is contained in:
@@ -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();
|
||||
}
|
||||
@@ -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',
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user