🎨 Add kernel API /api/filetree/listDocTree Fix https://github.com/siyuan-note/siyuan/issues/10482

This commit is contained in:
Daniel 2024-03-05 20:24:23 +08:00
parent de5009512d
commit a8b1b51c96
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 104 additions and 0 deletions

View file

@ -115,6 +115,7 @@ func ServeAPI(ginServer *gin.Engine) {
ginServer.Handle("POST", "/api/filetree/refreshFiletree", model.CheckAuth, model.CheckReadonly, refreshFiletree)
ginServer.Handle("POST", "/api/filetree/upsertIndexes", model.CheckAuth, model.CheckReadonly, upsertIndexes)
ginServer.Handle("POST", "/api/filetree/removeIndexes", model.CheckAuth, model.CheckReadonly, removeIndexes)
ginServer.Handle("POST", "/api/filetree/listDocTree", model.CheckAuth, model.CheckReadonly, listDocTree)
ginServer.Handle("POST", "/api/format/autoSpace", model.CheckAuth, model.CheckReadonly, autoSpace)
ginServer.Handle("POST", "/api/format/netImg2LocalAssets", model.CheckAuth, model.CheckReadonly, netImg2LocalAssets)