0.10.2-19 Frontend
This commit is contained in:
1 parent
7796587f16
commit
46bd235afc
13 files changed
+227
-100
No files matched your search
@@ -415,6 +415,15 @@ export const api = {
|
||||
method: 'POST'
|
||||
});
|
||||
},
|
||||
async getPref(key) {
|
||||
return request(`/settings/prefs/${encodeURIComponent(key)}`);
|
||||
},
|
||||
async setPref(key, value) {
|
||||
return request(`/settings/prefs/${encodeURIComponent(key)}`, {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({ value })
|
||||
});
|
||||
},
|
||||
async updateSetting(key, value) {
|
||||
const result = await request(`/settings/${encodeURIComponent(key)}`, {
|
||||
method: 'PUT',
|
||||
|
||||
Reference in new issue
Block a user