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 1eb11d9 commit dd99f50Copy full SHA for dd99f50
README.md
@@ -80,7 +80,7 @@ rv.URLParam(paramname)
80
81
// serve css, js etc.. pure.RequestVars(r).URLParam(pure.WildcardParam) will return the remaining path if
82
// you need to use it in a custom handler...
83
-p.Get("/static/*", http.FileServer(http.Dir("static/").ServeHTTP))
+p.Get("/static/*", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))).ServeHTTP)
84
85
...
86
```
0 commit comments