🎨 每个工作空间单独持久化 localStorage https://github.com/siyuan-note/siyuan/issues/6404

This commit is contained in:
Liang Ding 2022-10-30 23:06:12 +08:00
parent 174eb89910
commit de4d40c0f6
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 212 additions and 63 deletions

View file

@ -53,8 +53,11 @@ func ServeAPI(ginServer *gin.Engine) {
ginServer.Handle("POST", "/api/system/getConf", model.CheckAuth, getConf)
ginServer.Handle("POST", "/api/system/checkUpdate", model.CheckAuth, checkUpdate)
ginServer.Handle("POST", "/api/system/exportLog", model.CheckAuth, exportLog)
ginServer.Handle("POST", "/api/system/setLocalStorage", model.CheckAuth, setLocalStorage)
ginServer.Handle("POST", "/api/system/getLocalStorage", model.CheckAuth, getLocalStorage)
ginServer.Handle("POST", "/api/storage/setLocalStorage", model.CheckAuth, setLocalStorage)
ginServer.Handle("POST", "/api/storage/getLocalStorage", model.CheckAuth, getLocalStorage)
ginServer.Handle("POST", "/api/storage/setLocalStorageVal", model.CheckAuth, setLocalStorageVal)
ginServer.Handle("POST", "/api/storage/removeLocalStorageVal", model.CheckAuth, removeLocalStorageVal)
ginServer.Handle("POST", "/api/account/login", model.CheckAuth, login)
ginServer.Handle("POST", "/api/account/checkActivationcode", model.CheckAuth, checkActivationcode)