🎨 新增获取块 kramdown 源代码的 API https://github.com/siyuan-note/siyuan/issues/5289

This commit is contained in:
Liang Ding 2022-06-27 23:03:31 +08:00
parent e1b45b40e5
commit 6723b3a20d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 121 additions and 30 deletions

View file

@ -125,6 +125,7 @@ func ServeAPI(ginServer *gin.Engine) {
ginServer.Handle("POST", "/api/block/getBlockInfo", model.CheckAuth, getBlockInfo)
ginServer.Handle("POST", "/api/block/getBlockDOM", model.CheckAuth, getBlockDOM)
ginServer.Handle("POST", "/api/block/getBlockKramdown", model.CheckAuth, getBlockKramdown)
ginServer.Handle("POST", "/api/block/getBlockBreadcrumb", model.CheckAuth, getBlockBreadcrumb)
ginServer.Handle("POST", "/api/block/getRefIDs", model.CheckAuth, getRefIDs)
ginServer.Handle("POST", "/api/block/getRefIDsByFileAnnotationID", model.CheckAuth, getRefIDsByFileAnnotationID)