From cf929110d8bc07626992a2e7eb2b5748a72caab9 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Wed, 4 Nov 2020 18:16:20 +0100 Subject: [PATCH] Working --- climate-server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))