mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 23:44:06 +01:00
🎨 每个工作空间单独持久化 localStorage https://github.com/siyuan-note/siyuan/issues/6404
This commit is contained in:
parent
174eb89910
commit
de4d40c0f6
4 changed files with 212 additions and 63 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue