An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Allow document content APIs in publishing service https://github.com/siyuan-note/siyuan/issues/18257
Daniel5e3adbd62ef3
diff --git a/kernel/api/router.go b/kernel/api/router.goindex 7d308dc1fc..3c7885b28f 100644--- a/kernel/api/router.go+++ b/kernel/api/router.go@@ -218,12 +218,12 @@ func ServeAPI(ginServer *gin.Engine) {ginServer.Handle("POST", "/api/search/semanticSearchBlock", model.CheckAuth, semanticSearchBlock)ginServer.Handle("POST", "/api/block/getBlockInfo", model.CheckAuth, getBlockInfo)- ginServer.Handle("POST", "/api/block/getBlockDOM", model.CheckAuth, model.CheckAdminRole, getBlockDOM)- ginServer.Handle("POST", "/api/block/getBlockDOMs", model.CheckAuth, model.CheckAdminRole, getBlockDOMs)- ginServer.Handle("POST", "/api/block/getBlockDOMWithEmbed", model.CheckAuth, model.CheckAdminRole, getBlockDOMWithEmbed)- ginServer.Handle("POST", "/api/block/getBlockDOMsWithEmbed", model.CheckAuth, model.CheckAdminRole, getBlockDOMsWithEmbed)- ginServer.Handle("POST", "/api/block/getBlockKramdown", model.CheckAuth, model.CheckAdminRole, getBlockKramdown)- ginServer.Handle("POST", "/api/block/getBlockKramdowns", model.CheckAuth, model.CheckAdminRole, getBlockKramdowns)+ ginServer.Handle("POST", "/api/block/getBlockDOM", model.CheckAuth, getBlockDOM)+ ginServer.Handle("POST", "/api/block/getBlockDOMs", model.CheckAuth, getBlockDOMs)+ ginServer.Handle("POST", "/api/block/getBlockDOMWithEmbed", model.CheckAuth, getBlockDOMWithEmbed)+ ginServer.Handle("POST", "/api/block/getBlockDOMsWithEmbed", model.CheckAuth, getBlockDOMsWithEmbed)+ ginServer.Handle("POST", "/api/block/getBlockKramdown", model.CheckAuth, getBlockKramdown)+ ginServer.Handle("POST", "/api/block/getBlockKramdowns", model.CheckAuth, getBlockKramdowns)ginServer.Handle("POST", "/api/block/getChildBlocks", model.CheckAuth, model.CheckAdminRole, getChildBlocks)ginServer.Handle("POST", "/api/block/getTailChildBlocks", model.CheckAuth, model.CheckAdminRole, getTailChildBlocks)ginServer.Handle("POST", "/api/block/getBlockBreadcrumb", model.CheckAuth, getBlockBreadcrumb)@@ -233,7 +233,7 @@ func ServeAPI(ginServer *gin.Engine) {ginServer.Handle("POST", "/api/block/getRefIDsByFileAnnotationID", model.CheckAuth, getRefIDsByFileAnnotationID)ginServer.Handle("POST", "/api/block/getBlockDefIDsByRefText", model.CheckAuth, getBlockDefIDsByRefText)ginServer.Handle("POST", "/api/block/getRefText", model.CheckAuth, getRefText)- ginServer.Handle("POST", "/api/block/getDOMText", model.CheckAuth, model.CheckAdminRole, getDOMText)+ ginServer.Handle("POST", "/api/block/getDOMText", model.CheckAuth, getDOMText)ginServer.Handle("POST", "/api/block/getTreeStat", model.CheckAuth, getTreeStat)ginServer.Handle("POST", "/api/block/getBlocksWordCount", model.CheckAuth, getBlocksWordCount)ginServer.Handle("POST", "/api/block/getContentWordCount", model.CheckAuth, getContentWordCount)