mirror of
https://github.com/labstack/echo.git
synced 2025-12-07 23:12:43 +02:00
param wildcard capture fixed to *
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
2
echo.go
2
echo.go
@@ -382,7 +382,7 @@ func (e *Echo) Match(methods []string, path string, handler HandlerFunc, middlew
|
||||
// provided root directory.
|
||||
func (e *Echo) Static(prefix, root string) {
|
||||
e.GET(prefix+"*", func(c Context) error {
|
||||
return c.File(path.Join(root, c.Param("_*")))
|
||||
return c.File(path.Join(root, c.Param("*")))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user