Skip to content

Commit d0e9711

Browse files
committed
fix: paths
1 parent 683860d commit d0e9711

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/static.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ func (web *Web) RegisterRoutes(router *mux.Router) {
8181
} else {
8282
webFS = http.FileServer(http.FS(assetsFS))
8383
}
84-
router.Handle("/assets/", webFS)
85-
router.Handle("/", http.HandlerFunc(web.rootHandler))
84+
85+
router.PathPrefix("/assets").Methods("GET").Handler(webFS)
86+
router.PathPrefix("/").Methods("GET").HandlerFunc(web.rootHandler)
8687
}

0 commit comments

Comments
 (0)