Browse Source

允许未登录查看接口

xyxie 6 tháng trước cách đây
mục cha
commit
542a46dd3d
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      routers/base_config.go

+ 2 - 3
routers/base_config.go

@@ -3,10 +3,9 @@ package routers
 import (
 	"github.com/gin-gonic/gin"
 	"hongze/hongze_yb/controller"
-	"hongze/hongze_yb/middleware"
 )
 
 func InitBaseConfig(r *gin.Engine) {
-	rGroup := r.Group("api/base").Use(middleware.Token())
-	rGroup.GET("/business_conf", controller.GetBusinessConf)
+	rGroupNotLogin := r.Group("api/base")
+	rGroupNotLogin.GET("/business_conf", controller.GetBusinessConf)
 }