mirror of
https://github.com/aykhans/slash-e.git
synced 2025-12-15 21:19:21 +00:00
feat: add workspace setting section
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user