This commit is contained in:
Daniel Ledda
2020-11-04 18:16:20 +01:00
parent cc8cd4bbc4
commit cf929110d8

View File

@@ -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))