Get the CSS and statuc stuff to work
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user