|
@@ -9,9 +9,9 @@ import (
|
|
|
// InitXiangyu 获取象屿
|
|
|
func InitXiangyu(r *gin.RouterGroup) {
|
|
|
control := new(xiangyu.XiangyuController)
|
|
|
- group := r.Group("xy/").Use(middleware.InternalToken())
|
|
|
- group.GET("user/sync", control.SyncUser)
|
|
|
- group.GET("user/pull", control.PullUser)
|
|
|
+ //group := r.Group("xy/").Use(middleware.InternalToken())
|
|
|
+ r.GET("user/sync", control.SyncUser)
|
|
|
+ r.GET("user/pull", control.PullUser)
|
|
|
|
|
|
// 需要内部鉴权的接口
|
|
|
initAuthXiangyu(r)
|
|
@@ -19,7 +19,7 @@ func InitXiangyu(r *gin.RouterGroup) {
|
|
|
|
|
|
func initAuthXiangyu(r *gin.RouterGroup) {
|
|
|
control := new(xiangyu.XiangyuController)
|
|
|
- group := r.Group("xy/").Use(middleware.Token())
|
|
|
+ group := r.Group("xy/").Use(middleware.InternalToken())
|
|
|
group.POST("auth/getToken", control.GetToken)
|
|
|
group.GET("auth/refreshToken", control.RefreshToken)
|
|
|
group.GET("auth/revokeToken", control.RevokeToken)
|