// getHealth calls the backend health endpoint via the Vite proxy (/api → :3000). export async function getHealth(): Promise<{ status: string }> { const res = await fetch('/api/v1/health') if (!res.ok) { throw new Error(`health check failed: ${res.status}`) } return res.json() }