testing bugs

This commit is contained in:
Daniel Ledda
2020-11-14 01:44:53 +01:00
parent f3f51d0ed7
commit 21c37b76d5

View File

@@ -48,7 +48,7 @@ func startServer() {
r.HandleFunc("/data", sendData).Methods("GET").Queries("since", "")
r.HandleFunc("/data/now", createAndSendSnapshot).Methods("GET")
r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("static/"))))
http.Handle("/", r)
http.Handle("", r)
fmt.Printf("Listening on port %s...\n", port)
quitSnapshot := make(chan int, 1)
go saveSnapshotOnInterval(30, quitSnapshot)