mirror of
https://github.com/labstack/echo.git
synced 2025-03-21 21:27:04 +02:00
small change to allow nested groups
This commit is contained in:
parent
67b1dfea04
commit
e11de1df62
2
echo.go
2
echo.go
@ -147,7 +147,7 @@ func New() (e *Echo) {
|
||||
// the parent. Passing middleware overrides parent middleware.
|
||||
func (e *Echo) Group(pfx string, m ...Middleware) *Echo {
|
||||
g := *e
|
||||
g.prefix = pfx
|
||||
g.prefix = g.prefix + pfx
|
||||
if len(m) > 0 {
|
||||
g.middleware = nil
|
||||
g.Use(m...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user