0.10.2-19 Frontend

This commit is contained in:
michael committed 2026-03-17 11:58:04 +00:00
1 parent 7796587f16
commit 46bd235afc
13 files changed
+227 -100

No files matched your search

+9
View File
@@ -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',