diff --git a/climate-server.go b/climate-server.go index 40afed2..60d7c02 100644 --- a/climate-server.go +++ b/climate-server.go @@ -41,7 +41,7 @@ func startServer() { r.HandleFunc("/data/since/{mins}", sendData).Methods("GET") r.HandleFunc("/data/last/", sendLastSnapshot).Methods("GET") r.HandleFunc("/", saveSnapshot).Methods("POST") - r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("/" + ROOT_URL + "static/")))) + r.PathPrefix("/static/").Handler(http.StripPrefix("/" + ROOT_URL + "/static/", http.FileServer(http.Dir("static/")))) http.Handle("/", r) fmt.Printf("Listening on port %s...\n", port) log.Fatal(http.ListenAndServe(":"+port, nil))