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