feat: add workspace setting section

This commit is contained in:
Steven
2023-06-23 22:46:35 +08:00
parent 61568840d3
commit afbf935a71
8 changed files with 101 additions and 6 deletions

View File

@@ -64,3 +64,10 @@ export function patchShortcut(shortcutPatch: ShortcutPatch) {
export function deleteShortcutById(shortcutId: ShortcutId) {
return axios.delete(`/api/v1/shortcut/${shortcutId}`);
}
export function upsertWorkspaceSetting(key: string, value: string) {
return axios.post(`/api/v1/workspace/setting`, {
key,
value,
});
}