Skip to content

Commit

Permalink
🐛 bug: fix mounting doesn't work if when to declare it before routes
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Sep 25, 2022
1 parent 2123fdd commit 0de4e2e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ func (app *App) Mount(prefix string, fiber *App) Router {
// Support for configs of mounted-apps and sub-mounted-apps
for mountedPrefixes, subApp := range fiber.appList {
app.appList[prefix+mountedPrefixes] = subApp
subApp.init()
}

return app
Expand Down
1 change: 0 additions & 1 deletion group.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ func (grp *Group) Mount(prefix string, fiber *App) Router {
// Support for configs of mounted-apps and sub-mounted-apps
for mountedPrefixes, subApp := range fiber.appList {
grp.app.appList[groupPath+mountedPrefixes] = subApp
subApp.init()
}

return grp
Expand Down

0 comments on commit 0de4e2e

Please sign in to comment.