diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-06-11 09:25:18 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-06-11 09:28:36 +0200 |
commit | d6fa6b112451f10f505db886d0ed023b3b931814 (patch) | |
tree | 226eba4183bc4dd2189ccd32480871ad25a063bc /src | |
parent | 20744817a3eb3af21c84b15b41684cf6e8aed86c (diff) | |
download | birdscan-d6fa6b112451f10f505db886d0ed023b3b931814.tar birdscan-d6fa6b112451f10f505db886d0ed023b3b931814.tar.zst birdscan-d6fa6b112451f10f505db886d0ed023b3b931814.zip |
Add CSS
Diffstat (limited to 'src')
-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)) +} + |