🎨 Improve auth

This commit is contained in:
Daniel 2025-07-25 11:21:23 +08:00
parent 61d08370dc
commit 0abbe9ec21
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -274,10 +274,8 @@ func CheckAuth(c *gin.Context) {
return return
} }
// 放过 /appearance/ // 放过静态资源请求
if strings.HasPrefix(c.Request.RequestURI, "/appearance/") || if strings.HasPrefix(c.Request.RequestURI, "/appearance/") || strings.HasPrefix(c.Request.RequestURI, "/stage/") {
strings.HasPrefix(c.Request.RequestURI, "/stage/build/export/") ||
strings.HasPrefix(c.Request.RequestURI, "/stage/protyle/") {
c.Next() c.Next()
return return
} }