Commit 3906cd1 1 parent db25f05 commit 3906cd1 Copy full SHA for 3906cd1
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 504
504
}
505
505
506
506
const getRoute = async ( ) => {
507
- const response = await fetch ( ` ${ window . origin } / api/route` , {
507
+ const response = await fetch ( ' api/route' , {
508
508
method : 'POST' ,
509
509
mode : 'cors' ,
510
510
headers : {
544
544
} ;
545
545
546
546
const getGraph = async ( bounds ) => {
547
- const response = await fetch ( ` ${ window . origin } / api/graph` , {
547
+ const response = await fetch ( ' api/graph' , {
548
548
method : 'POST' ,
549
549
mode : 'cors' ,
550
550
headers : {
560
560
} ;
561
561
562
562
const getLevels = async ( bounds ) => {
563
- const response = await fetch ( ` ${ window . origin } / api/levels` , {
563
+ const response = await fetch ( ' api/levels' , {
564
564
method : 'POST' ,
565
565
mode : 'cors' ,
566
566
headers : {
You can’t perform that action at this time.
0 commit comments