diff --git a/climate-server.go b/climate-server.go index 791e9bc..cc3504a 100644 --- a/climate-server.go +++ b/climate-server.go @@ -32,7 +32,7 @@ func teardown() { func startServer() { port := "8001" MainRouter.setGet("/", showCharts) - MainRouter.setGet("/data", sendData) + MainRouter.setGet("/data/", sendData) MainRouter.setPost("/", saveSnapshot) fmt.Printf("Listening on port %s...\n", port) log.Fatal(http.ListenAndServe(":" + port, nil))