update api

This commit is contained in:
2026-06-11 21:28:04 +05:30
parent 0736712464
commit 807d68c9b4
25 changed files with 1167 additions and 84 deletions

View File

@@ -0,0 +1,16 @@
// ==============================|| HEALTH SERVICE ||============================== //
// Backend liveness/readiness. Note: these endpoints live at the API root (/health, /ready),
// not under /admin — the path passed here is still relative to VITE_API_BASE_URL.
import { get } from './http';
import { mockHealth, mockReady } from './mock/health';
/** @returns {Promise<import('./dto').HealthResponse>} */
export function getHealth() {
return get('/health', { mock: mockHealth });
}
/** @returns {Promise<import('./dto').ReadyResponse>} */
export function getReady() {
return get('/ready', { mock: mockReady });
}