diff --git a/frontend/index.html b/frontend/index.html index c5ad8f2..a054101 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -195,7 +195,7 @@ textarea { resize: vertical; min-height: 120px; } async function load() { setStatus('Loading…'); try { - const res = await fetch('/api/v1/context', { headers: { Accept: 'application/json' } }); + const res = await fetch('api/v1/context', { headers: { Accept: 'application/json' } }); if (!res.ok) throw new Error('HTTP ' + res.status); const data = await res.json(); liveMode = true; @@ -264,7 +264,7 @@ textarea { resize: vertical; min-height: 120px; } async function loadEventStream() { setEventStreamStatus('Updating…'); try { - const res = await fetch('/api/v1/events', { headers: { Accept: 'application/json' } }); + const res = await fetch('api/v1/events', { headers: { Accept: 'application/json' } }); if (!res.ok) throw new Error('HTTP ' + res.status); paintEventStream(await res.json()); setEventStreamStatus('Updated ' + fmt(new Date())); @@ -275,7 +275,7 @@ textarea { resize: vertical; min-height: 120px; } async function tickWidgets() { try { - const res = await fetch('/api/v1/context', { headers: { Accept: 'application/json' } }); + const res = await fetch('api/v1/context', { headers: { Accept: 'application/json' } }); const data = await res.json(); qs('#layout-hint').innerHTML = '