From d6fa6b112451f10f505db886d0ed023b3b931814 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 11 Jun 2021 09:25:18 +0200 Subject: Add CSS --- src/web.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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)) +} + -- cgit v1.2.3-70-g09d2