Skip to content

Commit

Permalink
update some
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Dec 12, 2018
1 parent a906aeb commit 56ad8ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions router.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,14 @@ func (r *Router) AddRoute(route *Route) *Route {
}

func (r *Router) appendGroupInfo(route *Route) {
path := route.path
path := r.formatPath(route.path)

if r.currentGroupPrefix != "" {
path = r.currentGroupPrefix + r.formatPath(path)
path = r.formatPath(r.currentGroupPrefix + path)
}

// re-setting
route.path = r.formatPath(path)
route.path = path

if len(r.currentGroupHandlers) > 0 {
// middleware = append(r.currentGroupHandlers, middleware...)
Expand Down

0 comments on commit 56ad8ad

Please sign in to comment.