mirror of
https://github.com/labstack/echo.git
synced 2025-07-01 00:55:04 +02:00
2
echo.go
2
echo.go
@ -224,7 +224,7 @@ const (
|
||||
|
||||
const (
|
||||
// Version of Echo
|
||||
Version = "4.1.4"
|
||||
Version = "4.1.5"
|
||||
website = "https://echo.labstack.com"
|
||||
// http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
|
||||
banner = `
|
||||
|
7
group.go
7
group.go
@ -25,11 +25,8 @@ func (g *Group) Use(middleware ...MiddlewareFunc) {
|
||||
}
|
||||
// Allow all requests to reach the group as they might get dropped if router
|
||||
// doesn't find a match, making none of the group middleware process.
|
||||
for _, p := range []string{"", "/*"} {
|
||||
g.Any(p, func(c Context) error {
|
||||
return NotFoundHandler(c)
|
||||
})
|
||||
}
|
||||
g.Any("", NotFoundHandler)
|
||||
g.Any("/*", NotFoundHandler)
|
||||
}
|
||||
|
||||
// CONNECT implements `Echo#CONNECT()` for sub-routes within the Group.
|
||||
|
Reference in New Issue
Block a user