Working
This commit is contained in:
@@ -32,7 +32,7 @@ func teardown() {
|
|||||||
func startServer() {
|
func startServer() {
|
||||||
port := "8001"
|
port := "8001"
|
||||||
MainRouter.setGet("/", showCharts)
|
MainRouter.setGet("/", showCharts)
|
||||||
MainRouter.setGet("/data", sendData)
|
MainRouter.setGet("/data/", sendData)
|
||||||
MainRouter.setPost("/", saveSnapshot)
|
MainRouter.setPost("/", saveSnapshot)
|
||||||
fmt.Printf("Listening on port %s...\n", port)
|
fmt.Printf("Listening on port %s...\n", port)
|
||||||
log.Fatal(http.ListenAndServe(":" + port, nil))
|
log.Fatal(http.ListenAndServe(":" + port, nil))
|
||||||
|
|||||||
Reference in New Issue
Block a user