mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-22 03:06:38 +08:00
feat(ui): 网站配置需授权,去掉
This commit is contained in:
parent
90930ea9f9
commit
71611273d7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user