1
0
Fork 0
mirror of https://github.com/voltbonn/diversity.volt.link.git synced 2024-06-25 23:40:57 +00:00

moved teams.json into an api folder-path

This commit is contained in:
thomasrosen 2022-11-22 12:47:12 +01:00
parent bc130ea589
commit 1ef1a4785f
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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