Skip to content

Commit f72eaa4

Browse files
author
Segev Finer
committed
Remove group.Use registering Any routes that break other routes
Fixes #1657
1 parent 151ed6b commit f72eaa4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

group.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ func (g *Group) Use(middleware ...MiddlewareFunc) {
2323
if len(g.middleware) == 0 {
2424
return
2525
}
26-
// Allow all requests to reach the group as they might get dropped if router
27-
// doesn't find a match, making none of the group middleware process.
28-
g.Any("", NotFoundHandler)
29-
g.Any("/*", NotFoundHandler)
3026
}
3127

3228
// CONNECT implements `Echo#CONNECT()` for sub-routes within the Group.

0 commit comments

Comments
 (0)