Get the CSS and statuc stuff to work

This commit is contained in:
2026-07-31 12:57:19 -07:00
parent ba8afc76cc
commit f0da8aac87
8 changed files with 271 additions and 0 deletions
+5
View File
@@ -21,6 +21,11 @@ func EnableLogoRoute() {
})
}
func EnableStaticRoute() {
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("webserver/static"))))
routes = append(routes, "/static/*")
}
func ServeWebpage(url string, handler func(http.ResponseWriter, *http.Request)) {
http.HandleFunc(url, handler)
routes = append(routes, url)