feat: initialized auth controller
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user