diff --git a/wetter/templates/index.html b/wetter/templates/index.html index af401db..fedcfa0 100644 --- a/wetter/templates/index.html +++ b/wetter/templates/index.html @@ -40,7 +40,7 @@ zoomOffset: -1 }).addTo(mymap); - $.getJSON("/api/station", (stations) => { + $.getJSON("/api/station/", (stations) => { if(stations.length == 1) { mymap.setView([stations[0]["lat"], stations[0]["lon"]], 6); } diff --git a/wetter/templates/station.html b/wetter/templates/station.html index cd65876..3e1b2d6 100644 --- a/wetter/templates/station.html +++ b/wetter/templates/station.html @@ -86,7 +86,7 @@ zoomOffset: -1 }).addTo(mymap); - $.getJSON("/api/station?s={{ station.dwd_id }}", (stations) => { + $.getJSON("/api/station/?s={{ station.dwd_id }}", (stations) => { if(stations.length == 1) { mymap.setView([stations[0]["lat"], stations[0]["lon"]], 6); }