From 0a2f7e50c90d3293eaedbd9bad945ce3cb5376eb Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Mon, 25 Aug 2025 14:07:47 -0700 Subject: [PATCH] Adding live-map and static pages for the apis --- meshview/static/live-map.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshview/static/live-map.html b/meshview/static/live-map.html index aaf9221..03b8fd5 100644 --- a/meshview/static/live-map.html +++ b/meshview/static/live-map.html @@ -112,7 +112,7 @@ // Load nodes from API async function loadNodes() { try { - const res = await fetch("http://localhost:8081/api/nodes"); + const res = await fetch("/api/nodes"); const nodes = (await res.json()).nodes; nodes.forEach(node => { @@ -154,7 +154,7 @@ // Poll packets and animate async function pollPackets() { try { - let url = "http://localhost:8081/api/packets?limit=10"; + let url = "/api/packets?limit=10"; if(lastPacketTime) url += `&since=${lastPacketTime}`; const packets = (await (await fetch(url)).json()).packets || []; if(packets.length>0) lastPacketTime = packets[0].import_time;