Almost there
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user