/** * Thin API client for the Sis backend. */ const BASE = "/api"; async function request(path: string): Promise { const resp = await fetch(BASE + path); if (!resp.ok) { throw new Error(`HTTP ${resp.status}: ${resp.statusText}`); } return resp.json() as Promise; } export interface HealthResponse { message: string; } export function checkHealth(): Promise { return request("/health").then((r) => r.message); }