🎨 Add kernel API /api/archive/zip and /api/archive/unzip Fix https://github.com/siyuan-note/siyuan/issues/9028

This commit is contained in:
Daniel 2023-08-26 22:38:02 +08:00
parent ccff6efc98
commit 0beca364fa
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 84 additions and 0 deletions

View file

@ -377,4 +377,7 @@ func ServeAPI(ginServer *gin.Engine) {
ginServer.Handle("GET", "/api/broadcast/channels", model.CheckAuth, getChannels)
ginServer.Handle("POST", "/api/broadcast/postMessage", model.CheckAuth, postMessage)
ginServer.Handle("POST", "/api/broadcast/getChannelInfo", model.CheckAuth, getChannelInfo)
ginServer.Handle("POST", "/api/archive/zip", model.CheckAuth, zip)
ginServer.Handle("POST", "/api/archive/unzip", model.CheckAuth, unzip)
}