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.
2 parents 702b13d + bba1e0c commit 18f11abCopy full SHA for 18f11ab
README.md
@@ -74,7 +74,7 @@ l.Get("/user/:id", UserHandler)
74
75
// serve css, js etc.. c.Param(lars.WildcardParam) will return the remaining path if
76
// you need to use it in a custom handler...
77
-l.Get("/static/*", http.FileServer(http.Dir("static/")))
+l.Get("/static/*", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
78
79
...
80
```
0 commit comments