From e11de1df62494152d51e775353d32050f6cc5774 Mon Sep 17 00:00:00 2001 From: Tim Anema Date: Sun, 26 Apr 2015 18:17:46 -0400 Subject: [PATCH] small change to allow nested groups --- echo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echo.go b/echo.go index ea9ae064..f2dbf717 100644 --- a/echo.go +++ b/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...)