~repos /gromer
git clone https://pyrossh.dev/repos/gromer.git
gromer is a framework and cli to build multipage web apps in golang using htmx and alpinejs.
fix StaticRoute
http.go
CHANGED
|
@@ -384,7 +384,7 @@ func StatusHandler(h interface{}) http.Handler {
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
func StaticRoute(router *mux.Router, path string, fs embed.FS) {
|
|
387
|
-
router.
|
|
387
|
+
router.PathPrefix(path).Methods("GET").Handler(http.StripPrefix(path, http.FileServer(http.FS(fs))))
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
func StylesRoute(router *mux.Router, path string) {
|