Skip to content

Commit 47f1449

Browse files
kagiurazwliew
authored andcommitted
fix: 👽️ new proxy api base url added
1 parent 4621d91 commit 47f1449

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

website/src/apis/nextbus-new.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33
export const getStopTimings = async (
44
stop: string,
@@ -8,12 +8,13 @@ export const getStopTimings = async (
88
if (!stop) return;
99
const API_AUTH = ''; // TODO: wait until we have an api proxy
1010
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);
1718
const data = await response.json();
1819
// console.log(data);
1920
if (callback) callback(data.ShuttleServiceResult);

0 commit comments

Comments
 (0)