mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
register controller
This commit is contained in:
@@ -10,6 +10,11 @@ import (
|
||||
|
||||
func Routes(s *gin.Engine, db *pg.DB) {
|
||||
apiService := services.ApiService{Db: db}
|
||||
registerService := services.RegisterService{Db: db}
|
||||
|
||||
apiController := controllers.ApiController{ApiService: &apiService}
|
||||
registerController := controllers.RegisterController{RegisterService: ®isterService}
|
||||
|
||||
apiController.Init(s)
|
||||
registerController.Init(s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user