splitted user registration into user, consents & bankaccount creation
This commit is contained in:
@@ -21,9 +21,13 @@ func Run() {
|
||||
defer db.Close()
|
||||
|
||||
emailService := services.NewEmailService(cfg.SMTP.Host, cfg.SMTP.Port, cfg.SMTP.User, cfg.SMTP.Password, cfg.SMTP.AdminEmail)
|
||||
consentRepo := repositories.NewConsentRepository(db)
|
||||
consentService := services.NewConsentService(consentRepo)
|
||||
bankAccountRepo := repositories.NewBankAccountRepository(db)
|
||||
bankAccountService := services.NewBankAccountService(bankAccountRepo)
|
||||
userRepo := repositories.NewUserRepository(db)
|
||||
userService := services.NewUserService(userRepo)
|
||||
userController := controllers.NewUserController(userService, emailService)
|
||||
userController := controllers.NewUserController(userService, emailService, consentService, bankAccountService)
|
||||
|
||||
router := mux.NewRouter()
|
||||
// router.Handle("/csrf-token", middlewares.GenerateCSRFTokenHandler()).Methods("GET")
|
||||
|
||||
Reference in New Issue
Block a user