Skip to content

Commit

Permalink
fixed #700
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <vr@labstack.com>
  • Loading branch information
vishr committed Oct 30, 2016
1 parent 58166d5 commit 796df51
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions group.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ type (
// Use implements `Echo#Use()` for sub-routes within the Group.
func (g *Group) Use(middleware ...MiddlewareFunc) {
g.middleware = append(g.middleware, middleware...)
// Allow requests `/prefix & /prefix/*` to reach the group as they might get
// dropped if router doesn't find a match, making none of the group middleware
// execute.
paths := []string{"/*"}
if g.prefix == "" {
paths = append(paths, "/")
} else {
paths = append(paths, "")
}
for _, p := range paths {
g.Any(p, NotFoundHandler, g.middleware...)
}
}

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

0 comments on commit 796df51

Please sign in to comment.