Skip to content

Commit 3906cd1

Browse files
deskjetSimon
and
Simon
authored
web ui: fix request path (#16)
Co-authored-by: Simon <simon@triptix.tech>
1 parent db25f05 commit 3906cd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@
504504
}
505505

506506
const getRoute = async () => {
507-
const response = await fetch(`${window.origin}/api/route`, {
507+
const response = await fetch('api/route', {
508508
method: 'POST',
509509
mode: 'cors',
510510
headers: {
@@ -544,7 +544,7 @@
544544
};
545545

546546
const getGraph = async (bounds) => {
547-
const response = await fetch(`${window.origin}/api/graph`, {
547+
const response = await fetch('api/graph', {
548548
method: 'POST',
549549
mode: 'cors',
550550
headers: {
@@ -560,7 +560,7 @@
560560
};
561561

562562
const getLevels = async (bounds) => {
563-
const response = await fetch(`${window.origin}/api/levels`, {
563+
const response = await fetch('api/levels', {
564564
method: 'POST',
565565
mode: 'cors',
566566
headers: {

0 commit comments

Comments
 (0)