コード例 #1
0
ファイル: authentication.go プロジェクト: adtechtest/prog_buy
func CreateUserRoutes(router *router, s gorm.DB) *router {
	c := controllers.NewAuthenticationController(s)

	router.Post("/create-user", CommonHandlers.ThenFunc(c.CreateUser))
	return router
}
コード例 #2
0
ファイル: authentication.go プロジェクト: adtechtest/prog_buy
func ForgotPasswordChangeRoutes(router *router, s gorm.DB) *router {
	c := controllers.NewAuthenticationController(s)

	router.Post("/change-forgot-pass", CommonHandlers.ThenFunc(c.ForgotPasswordChange))
	return router
}
コード例 #3
0
ファイル: authentication.go プロジェクト: adtechtest/prog_buy
func ChangePasswordRoutes(router *router, s gorm.DB) *router {
	c := controllers.NewAuthenticationController(s)

	router.Post("/change-pass", CommonHandlers.ThenFunc(c.ChangePassword))
	return router
}
コード例 #4
0
ファイル: authentication.go プロジェクト: adtechtest/prog_buy
func IsValidTokenRoutes(router *router, s gorm.DB) *router {
	c := controllers.NewAuthenticationController(s)

	router.Post("/is-valid", CommonHandlers.ThenFunc(c.IsValidForgotPasswordToken))
	return router
}
コード例 #5
0
ファイル: authentication.go プロジェクト: adtechtest/prog_buy
func LoginRoutes(router *router, s gorm.DB) *router {
	c := controllers.NewAuthenticationController(s)

	router.Post("/login", CommonHandlers.ThenFunc(c.Login))
	return router
}