Avoid redirect

This commit is contained in:
clerie 2022-03-05 13:34:17 +01:00
parent 4cfac906ac
commit 3193c6d507
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}