mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
minor README changes
Former-commit-id: becf1864dfbb24409f51122eaee5b1e2b979a20b
This commit is contained in:
@@ -464,8 +464,8 @@ func FileServer(directory string, opts ...DirOptions) context.Handler {
|
||||
// Usage:
|
||||
// fileserver := FileServer("./static_files", DirOptions {...})
|
||||
// h := StripPrefix("/static", fileserver)
|
||||
// app.Get("/static/{f:path}", h)
|
||||
// app.Head("/static/{f:path}", h)
|
||||
// app.Get("/static/{file:path}", h)
|
||||
// app.Head("/static/{file:path}", h)
|
||||
func StripPrefix(prefix string, h context.Handler) context.Handler {
|
||||
if prefix == "" {
|
||||
return h
|
||||
|
||||
Reference in New Issue
Block a user