diff --git a/server.go b/server.go index 78c1044..67d9c86 100644 --- a/server.go +++ b/server.go @@ -17,7 +17,7 @@ const ROOT_URL = "/climate" func startServer() { port := "8001" - router := mux.NewRouter() + router := mux.NewRouter().StrictSlash(true) router.HandleFunc("", showCharts).Methods("GET") router.HandleFunc("", showCharts).Methods("GET").Queries("show-minutes", "{[0-9]+}") router.HandleFunc("", saveSnapshot).Methods("POST")