🎨 支持通过界面设置代码片段 https://github.com/siyuan-note/siyuan/issues/6357

This commit is contained in:
Liang Ding 2022-10-26 20:44:45 +08:00
parent 4a2a422c69
commit 221693d937
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 104 additions and 25 deletions

View file

@ -283,5 +283,6 @@ func ServeAPI(ginServer *gin.Engine) {
ginServer.Handle("POST", "/api/notification/pushErrMsg", model.CheckAuth, pushErrMsg)
ginServer.Handle("POST", "/api/snippet/getSnippet", model.CheckAuth, getSnippet)
ginServer.Handle("POST", "/api/snippet/setSnippet", model.CheckAuth, setSnippet)
ginServer.Handle("GET", "/snippets/*filepath", serveSnippets)
}