summaryrefslogtreecommitdiff
path: root/src/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/web.go')
-rw-r--r--src/web.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web.go b/src/web.go
index c0732ad..b57c5f5 100644
--- a/src/web.go
+++ b/src/web.go
@@ -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))
+}
+