fix
This commit is contained in:
parent
0903bc55eb
commit
c18ab4576e
1 changed files with 7 additions and 0 deletions
|
|
@ -39,6 +39,13 @@ func NewApp(deps Deps) *App {
|
|||
apiRoutes.GET("/", func(c *gin.Context) {
|
||||
c.String(http.StatusOK, "API is ready")
|
||||
})
|
||||
|
||||
for _, m := range app.modules {
|
||||
if hasRoutes, ok := m.(interfaces.ModuleRoutes); ok {
|
||||
hasRoutes.RegisterRoutes(apiRoutes, app.routerHandler.AuthMW())
|
||||
}
|
||||
}
|
||||
|
||||
return app
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue