fix: wechat auth
This commit is contained in:
@@ -28,15 +28,13 @@ func (r *Routes) Name() string {
|
||||
|
||||
func (r *Routes) Register(router fiber.Router) {
|
||||
// 注册路由组: Controller
|
||||
router.Get("/v1/auth/wechat/jump/:tenant", Func2(
|
||||
router.Get("/auth/wechat/jump", Func1(
|
||||
r.controller.JumpToAuth,
|
||||
Path[string]("tenant"),
|
||||
QueryParam[string]("redirectUri"),
|
||||
))
|
||||
|
||||
router.Get("/v1/auth/login/:tenant", Func4(
|
||||
router.Get("/auth/login", Func3(
|
||||
r.controller.Login,
|
||||
Path[string]("tenant"),
|
||||
QueryParam[string]("code"),
|
||||
QueryParam[string]("state"),
|
||||
QueryParam[string]("redirectUri"),
|
||||
|
||||
Reference in New Issue
Block a user