diff --git a/ui/src/components/Dashboard.svelte b/ui/src/components/Dashboard.svelte index c3c1431..cf00a7b 100644 --- a/ui/src/components/Dashboard.svelte +++ b/ui/src/components/Dashboard.svelte @@ -21,7 +21,7 @@ async function fetchData() { try { - const res = await fetch("http://localhost:8002/api/status"); + const res = await fetch("/api/status"); if (!res.ok) throw new Error("Failed to fetch status"); const data = await res.json(); diff --git a/ui/src/components/DashboardControls.svelte b/ui/src/components/DashboardControls.svelte index c4d4088..f4c2d48 100644 --- a/ui/src/components/DashboardControls.svelte +++ b/ui/src/components/DashboardControls.svelte @@ -10,7 +10,7 @@ if (!confirm("Start full library scan?")) return; scanning = true; try { - await fetch("http://localhost:8002/api/scan", { method: "POST" }); + await fetch("/api/scan", { method: "POST" }); dispatch("scan"); // Reset scanning state after a bit since it's async background setTimeout(() => (scanning = false), 2000); @@ -24,7 +24,7 @@ checkingOrphans = true; orphanResult = "Measuring quantum fluctuations (scanning)..."; try { - const res = await fetch("http://localhost:8002/api/check-orphans", { + const res = await fetch("/api/check-orphans", { method: "POST", }); const data = await res.json(); diff --git a/ui/src/components/LogViewer.svelte b/ui/src/components/LogViewer.svelte index cd4f8a5..0789502 100644 --- a/ui/src/components/LogViewer.svelte +++ b/ui/src/components/LogViewer.svelte @@ -1,7 +1,7 @@