feat(ui): 网站配置需授权,去掉

This commit is contained in:
吴汉强 2024-03-14 16:28:49 +08:00
parent af5afd7700
commit ef130fe377

View File

@ -162,8 +162,7 @@ func authorizeMiddleware(s *AppServer, client *redis.Client) gin.HandlerFunc {
strings.HasPrefix(c.Request.URL.Path, "/api/sms/") ||
strings.HasPrefix(c.Request.URL.Path, "/api/captcha/") ||
strings.HasPrefix(c.Request.URL.Path, "/api/payment/") ||
strings.HasPrefix(c.Request.URL.Path, "/static/") ||
c.Request.URL.Path == "/api/admin/config/get" {
strings.HasPrefix(c.Request.URL.Path, "/static/") {
c.Next()
return
}