diff options
Diffstat (limited to 'src/web.go')
-rw-r--r-- | src/web.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -20,6 +20,7 @@ func runServer() { router.Use(middleware.Logger) router.Get("/", indexHandler) + router.Get("/css/birdscan.css", cssHandler) log.Println("Binding to 'http://" + "127.0.0.1" + ":" + "8080" + "'") log.Fatal(http.ListenAndServe("127.0.0.1" + ":" + "8080", router)) @@ -29,3 +30,7 @@ func indexHandler(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, fmt.Sprintf("%s/html/index.html", APP_DATA)) } +func cssHandler(w http.ResponseWriter, r *http.Request) { + http.ServeFile(w, r, fmt.Sprintf("%s/css/birdscan.css", APP_DATA)) +} + |