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 702b13d commit bba1e0cCopy full SHA for bba1e0c
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