Skip to content

Commit

Permalink
docs: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
savsgio committed Feb 27, 2023
1 parent dfc141c commit d231958
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions group.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ func (g *Group) ANY(path string, handler fasthttp.RequestHandler) {
// "/etc/passwd" would be served.
// Internally a fasthttp.FSHandler is used, therefore http.NotFound is used instead
// Use:
// router.ServeFiles("/src/{filepath:*}", "./")
//
// router.ServeFiles("/src/{filepath:*}", "./")
func (g *Group) ServeFiles(path string, rootPath string) {
g.router.ServeFiles(g.prefix+path, rootPath)
}
Expand All @@ -80,7 +81,8 @@ func (g *Group) ServeFiles(path string, rootPath string) {
// Internally a fasthttp.FSHandler is used, therefore http.NotFound is used instead
// of the Router's NotFound handler.
// Use:
// router.ServeFilesCustom("/src/{filepath:*}", *customFS)
//
// router.ServeFilesCustom("/src/{filepath:*}", *customFS)
func (g *Group) ServeFilesCustom(path string, fs *fasthttp.FS) {
g.router.ServeFilesCustom(g.prefix+path, fs)
}
Expand Down

0 comments on commit d231958

Please sign in to comment.