func CreateUserRoutes(router *router, s gorm.DB) *router { c := controllers.NewAuthenticationController(s) router.Post("/create-user", CommonHandlers.ThenFunc(c.CreateUser)) return router }
func ForgotPasswordChangeRoutes(router *router, s gorm.DB) *router { c := controllers.NewAuthenticationController(s) router.Post("/change-forgot-pass", CommonHandlers.ThenFunc(c.ForgotPasswordChange)) return router }
func ChangePasswordRoutes(router *router, s gorm.DB) *router { c := controllers.NewAuthenticationController(s) router.Post("/change-pass", CommonHandlers.ThenFunc(c.ChangePassword)) return router }
func IsValidTokenRoutes(router *router, s gorm.DB) *router { c := controllers.NewAuthenticationController(s) router.Post("/is-valid", CommonHandlers.ThenFunc(c.IsValidForgotPasswordToken)) return router }
func LoginRoutes(router *router, s gorm.DB) *router { c := controllers.NewAuthenticationController(s) router.Post("/login", CommonHandlers.ThenFunc(c.Login)) return router }