feat: initialized auth controller

This commit is contained in:
2025-06-18 16:16:22 +03:00
parent ec40c86e4a
commit 582c0f15d8
5 changed files with 314 additions and 0 deletions

View File

@@ -13,6 +13,16 @@ func SetupRoutes(r *gin.Engine) *gin.Engine {
{
serviceGroup.GET("/health", controllers.HealthCheck)
}
authGroup := apiGroup.Group("/auth")
{
authGroup.POST("/registrationBegin", controllers.RegistrationBegin)
authGroup.POST("/registrationComplete", controllers.RegistrationComplete)
authGroup.POST("/login", controllers.Login)
authGroup.POST("/refresh", controllers.Refresh)
authGroup.POST("/passwordResetBegin", controllers.PasswordResetBegin)
authGroup.POST("/passwordResetComplete", controllers.PasswordResetComplete)
}
}
return r