diff --git a/backend/index.js b/backend/index.js index da547ae..3f35dd0 100644 --- a/backend/index.js +++ b/backend/index.js @@ -223,7 +223,7 @@ function reshapeTeamData(teams) { return data } -app.get('/teams.json', function (req, res, next) { +app.get('/api/teams.json', function (req, res, next) { // todo reload the file every day once diff --git a/frontend/index.js b/frontend/index.js index 9667da2..04c0f7e 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -124,8 +124,8 @@ function renderTeamSelectedAutomatically() { } } function loadTeams() { - // load teams from ./teams.json - fetch('./teams.json') + // load teams from ./api/teams.json + fetch('./api/teams.json') .then(response => response.json()) .then(data => { teams = data.teams