error
This commit is contained in:
parent
44500afd3f
commit
5d370e1077
13 changed files with 529 additions and 519 deletions
|
@ -11,6 +11,7 @@ import (
|
|||
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"otpm/api"
|
||||
"otpm/config"
|
||||
"otpm/database"
|
||||
"otpm/handlers"
|
||||
|
@ -90,6 +91,9 @@ func Execute() error {
|
|||
authService := services.NewAuthService(cfg, userRepo)
|
||||
otpService := services.NewOTPService(otpRepo)
|
||||
|
||||
// Register custom validations
|
||||
api.RegisterCustomValidations()
|
||||
|
||||
// Initialize handlers
|
||||
authHandler := handlers.NewAuthHandler(authService)
|
||||
otpHandler := handlers.NewOTPHandler(otpService)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue