summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-06-11 09:25:18 +0200
committerxengineering <mail2xengineering@protonmail.com>2021-06-11 09:28:36 +0200
commitd6fa6b112451f10f505db886d0ed023b3b931814 (patch)
tree226eba4183bc4dd2189ccd32480871ad25a063bc /src
parent20744817a3eb3af21c84b15b41684cf6e8aed86c (diff)
downloadbirdscan-d6fa6b112451f10f505db886d0ed023b3b931814.tar
birdscan-d6fa6b112451f10f505db886d0ed023b3b931814.tar.zst
birdscan-d6fa6b112451f10f505db886d0ed023b3b931814.zip
Add CSS
Diffstat (limited to 'src')
-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))
+}
+