Skip to content

Commit

Permalink
refactor: modified RegisterGroups function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ralvarezdev committed Jan 25, 2025
1 parent e9aa845 commit 099b19a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions http/factory/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type (
CreateRouter(baseRouter gonethttproute.RouterWrapper, path string) error
GetRouter() gonethttproute.RouterWrapper
RegisterRoutes()
RegisterGroups()
RegisterGroups() error
gonethttproute.RouterWrapper
}

Expand All @@ -35,8 +35,7 @@ func (c *Controller) CreateRouter(

// Register the controller routes and groups
c.RegisterRoutes()
c.RegisterGroups()
return nil
return c.RegisterGroups()
}

// GetRouter returns the router
Expand All @@ -48,4 +47,6 @@ func (c *Controller) GetRouter() gonethttproute.RouterWrapper {
func (c *Controller) RegisterRoutes() {}

// RegisterGroups registers the groups
func (c *Controller) RegisterGroups() {}
func (c *Controller) RegisterGroups() error {
return nil
}

0 comments on commit 099b19a

Please sign in to comment.