Skip to content

Commit

Permalink
refactor: added controller's RegisterRoutes call on Module's Create m…
Browse files Browse the repository at this point in the history
…ethod
  • Loading branch information
ralvarezdev committed Jan 25, 2025
1 parent 91a38d3 commit eacbfb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http/factory/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func (m *Module) Create(
return err
}

// Register the controller routes
m.controller.RegisterRoutes()

// Create the submodules controllers router
router := m.controller.GetRouter()
for _, submodule := range m.submodules {
Expand Down

0 comments on commit eacbfb2

Please sign in to comment.