From 59e6bf85f0d48585c0cfa79cb22b39c467277f55 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 14 Nov 2020 15:16:50 +0100 Subject: [PATCH] Almost there --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")