🎨 Improve auth

This commit is contained in:
Daniel 2025-07-25 12:27:45 +08:00
parent ddba6b1fd8
commit 94c70ae638
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

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