Skip to content

Commit 18f11ab

Browse files
author
Dean Karn
authored
Merge pull request #13 from cookiebody/patch-1
Update README.md
2 parents 702b13d + bba1e0c commit 18f11ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ l.Get("/user/:id", UserHandler)
7474

7575
// serve css, js etc.. c.Param(lars.WildcardParam) will return the remaining path if
7676
// you need to use it in a custom handler...
77-
l.Get("/static/*", http.FileServer(http.Dir("static/")))
77+
l.Get("/static/*", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
7878

7979
...
8080
```

0 commit comments

Comments
 (0)