~repos /gromer

#golang#htmx#ssr

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.


612067f1 Peter John

tag: v0.18.2

v0.18.2

3 years ago
fix StaticRoute
Files changed (1) hide show
  1. http.go +1 -1
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.Path(path).Methods("GET").Handler(http.StripPrefix(path, http.FileServer(http.FS(fs))))
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) {