fix: causal lab — URL relative /api (pas localhost:8000)

This commit is contained in:
OpenSquared
2026-06-27 23:38:38 +02:00
parent 7a0263989a
commit 83a8e8c5be

View File

@@ -64,7 +64,7 @@ interface CalibRow {
// ── API ───────────────────────────────────────────────────────────────────────
const api = async (path: string, opts?: RequestInit) => {
const r = await fetch(`http://localhost:8000${path}`, opts)
const r = await fetch(path, opts)
if (!r.ok) { const t = await r.text(); throw new Error(t) }
return r.json()
}