1
0
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:
Gerasimos (Makis) Maropoulos
2019-11-05 22:12:26 +02:00
parent 42e752b3f5
commit a42f914ce8
3 changed files with 11 additions and 8 deletions

View File

@@ -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