From 21c37b76d5d23112c0c4e7810f4d63408e2af990 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 14 Nov 2020 01:44:53 +0100 Subject: [PATCH] testing bugs --- climate-server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/climate-server.go b/climate-server.go index 8d7bc9b..223c256 100644 --- a/climate-server.go +++ b/climate-server.go @@ -48,7 +48,7 @@ func startServer() { r.HandleFunc("/data", sendData).Methods("GET").Queries("since", "") r.HandleFunc("/data/now", createAndSendSnapshot).Methods("GET") r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("static/")))) - http.Handle("/", r) + http.Handle("", r) fmt.Printf("Listening on port %s...\n", port) quitSnapshot := make(chan int, 1) go saveSnapshotOnInterval(30, quitSnapshot)