mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve auth
This commit is contained in:
parent
ddba6b1fd8
commit
94c70ae638
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue