🎨 支持伺服代码片段 /snippets/ Fix https://github.com/siyuan-note/siyuan/issues/6356

This commit is contained in:
Liang Ding 2022-10-26 12:09:41 +08:00
parent cad0f1030d
commit 2063203f23
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 26 additions and 0 deletions

View file

@ -283,4 +283,5 @@ 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("GET", "/snippets/*filepath", serveSnippets)
}