diff --git a/main.go b/main.go index 4b3a48c..fcb736c 100644 --- a/main.go +++ b/main.go @@ -28,11 +28,13 @@ func main() { panic(err) } - http.Handle("/js/", http.FileServer(http.Dir("."))) - http.Handle("/css/", http.FileServer(http.Dir("."))) - http.Handle("/favicon.ico", http.FileServer(http.Dir("."))) + http.Handle("/js/", http.FileServer(http.Dir("assets"))) + http.Handle("/css/", http.FileServer(http.Dir("assets"))) + http.Handle("/favicon.ico", http.FileServer(http.Dir("assets"))) + http.Handle("/data", http.FileServer(http.Dir("data"))) http.HandleFunc("/", index) + log.Printf("Listening on %v", server.Addr) err = server.ListenAndServe() if err != nil { panic(err)