An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lock: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gcm7-57gf-953c
Daniele6f5ef6b070b
diff --git a/kernel/api/router.go b/kernel/api/router.goindex ddd9c30725..ba0fa329d9 100644--- a/kernel/api/router.go+++ b/kernel/api/router.go@@ -38,10 +38,10 @@ func ServeAPI(ginServer *gin.Engine) {ginServer.Handle("POST", "/api/system/loginAuth", model.LoginAuth)ginServer.Handle("POST", "/api/system/logoutAuth", model.LogoutAuth)ginServer.Handle("GET", "/api/system/getCaptcha", model.GetCaptcha)- ginServer.Handle("GET", "/api/icon/getDynamicIcon", getDynamicIcon)-// 需要鉴权+ ginServer.Handle("GET", "/api/icon/getDynamicIcon", model.CheckAuth, getDynamicIcon)+ginServer.Handle("POST", "/api/system/getEmojiConf", model.CheckAuth, getEmojiConf)ginServer.Handle("POST", "/api/system/setAPIToken", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAPIToken)ginServer.Handle("POST", "/api/system/setAccessAuthCode", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setAccessAuthCode)