File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
- const baseURL = 'https://nusmods.com' ; // TODO: wait until we have an api proxy
1
+ const baseURL = 'https://nnextbus. nusmods.com' ; // TODO: wait until we have an api proxy
2
2
3
3
export const getStopTimings = async (
4
4
stop : string ,
@@ -8,12 +8,13 @@ export const getStopTimings = async (
8
8
if ( ! stop ) return ;
9
9
const API_AUTH = '' ; // TODO: wait until we have an api proxy
10
10
try {
11
- const response = await fetch ( `${ baseURL } /ShuttleService?busstopname=${ stop } ` , {
12
- headers : {
13
- authorization : API_AUTH ,
14
- accept : 'application/json' ,
15
- } ,
16
- } ) ;
11
+ const headers = {
12
+ // headers: {
13
+ // authorization: API_AUTH,
14
+ // accept: 'application/json',
15
+ // },
16
+ } ;
17
+ const response = await fetch ( `${ baseURL } /ShuttleService?busstopname=${ stop } ` , headers ) ;
17
18
const data = await response . json ( ) ;
18
19
// console.log(data);
19
20
if ( callback ) callback ( data . ShuttleServiceResult ) ;
You can’t perform that action at this time.
0 commit comments