From 3906cd141f3064dcfd0d77a9ea62276c883c4648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20G=C3=BCndling?= Date: Fri, 26 Jul 2024 16:56:53 +0200 Subject: [PATCH] web ui: fix request path (#16) Co-authored-by: Simon --- web/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/index.html b/web/index.html index 62e60df..6b74647 100644 --- a/web/index.html +++ b/web/index.html @@ -504,7 +504,7 @@ } const getRoute = async () => { - const response = await fetch(`${window.origin}/api/route`, { + const response = await fetch('api/route', { method: 'POST', mode: 'cors', headers: { @@ -544,7 +544,7 @@ }; const getGraph = async (bounds) => { - const response = await fetch(`${window.origin}/api/graph`, { + const response = await fetch('api/graph', { method: 'POST', mode: 'cors', headers: { @@ -560,7 +560,7 @@ }; const getLevels = async (bounds) => { - const response = await fetch(`${window.origin}/api/levels`, { + const response = await fetch('api/levels', { method: 'POST', mode: 'cors', headers: {