🔥 移除旧版云端同步和备份功能入口 https://github.com/siyuan-note/siyuan/issues/5405

This commit is contained in:
Liang Ding 2022-07-13 20:39:10 +08:00
parent 2863e32cff
commit e936b9cf0b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 55 additions and 164 deletions

View file

@ -167,7 +167,6 @@ func ServeAPI(ginServer *gin.Engine) {
ginServer.Handle("POST", "/api/sync/performSync", model.CheckAuth, performSync)
ginServer.Handle("POST", "/api/sync/performBootSync", model.CheckAuth, performBootSync)
ginServer.Handle("POST", "/api/sync/getBootSync", model.CheckAuth, getBootSync)
ginServer.Handle("POST", "/api/sync/getSyncDirection", model.CheckAuth, getSyncDirection)
ginServer.Handle("POST", "/api/inbox/getShorthands", model.CheckAuth, getShorthands)
ginServer.Handle("POST", "/api/inbox/removeShorthands", model.CheckAuth, removeShorthands)

View file

@ -25,19 +25,6 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func getSyncDirection(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
cloudDirName := arg["name"].(string)
ret.Code, ret.Msg = model.GetSyncDirection(cloudDirName)
}
func getBootSync(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)