Skip to content

Commit 390c24e

Browse files
committed
serve backend JSON with Apache, removing need for node entirely
1 parent 2b2d41f commit 390c24e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/frontend/src/store/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export function getLocationDT(location) {
300300
*/
301301
return (dispatch, getState) => {
302302
let region = "akl";
303-
let url = DT_SERVER+`/transit?region=${region}&location=${location}&direction=inbound`;
303+
let url = DT_SERVER+`/data/inbound/${region}/${location}.json`;
304304

305305
console.log(url);
306306
// console.log('getting data for destination:', location);
@@ -314,7 +314,7 @@ export function getLocationDT(location) {
314314
console.error(error)
315315
})
316316

317-
url = DT_SERVER+`/transit?region=${region}&location=${location}&direction=outbound`;
317+
url = DT_SERVER+`/data/outbound/${region}/${location}.json`;
318318
const outbound = fetch(url)
319319
.then(response => response.json())
320320
.then((data) => {

0 commit comments

Comments
 (0)