1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00

Fix Static files route not working

This commit is contained in:
pwli 2020-11-06 22:21:05 +08:00 committed by GitHub
parent ceffc10ecb
commit d2b8a7fb45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -498,6 +498,7 @@ func (common) static(prefix, root string, get func(string, HandlerFunc, ...Middl
}
return c.File(name)
}
get(prefix, h)
if prefix == "/" {
return get(prefix+"*", h)
}