From 3193c6d507af5d6f5d62c23046b7fbf0c638ddb4 Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 5 Mar 2022 13:34:17 +0100 Subject: [PATCH] Avoid redirect --- wetter/templates/index.html | 2 +- wetter/templates/station.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }