We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 683860d commit d0e9711Copy full SHA for d0e9711
web/static.go
@@ -81,6 +81,7 @@ func (web *Web) RegisterRoutes(router *mux.Router) {
81
} else {
82
webFS = http.FileServer(http.FS(assetsFS))
83
}
84
- router.Handle("/assets/", webFS)
85
- router.Handle("/", http.HandlerFunc(web.rootHandler))
+
+ router.PathPrefix("/assets").Methods("GET").Handler(webFS)
86
+ router.PathPrefix("/").Methods("GET").HandlerFunc(web.rootHandler)
87
0 commit comments