mirror of
https://github.com/aykhans/slash-e.git
synced 2025-12-13 20:29:21 +00:00
chore: get shortcut by name and workspace name
This commit is contained in:
@@ -87,6 +87,10 @@ export function getShortcutList(shortcutFind?: ShortcutFind) {
|
||||
return axios.get<ResponseObject<Shortcut[]>>(`/api/shortcut?${queryList.join("&")}`);
|
||||
}
|
||||
|
||||
export function getShortcutWithNameAndWorkspaceName(workspaceName: string, shortcutName: string) {
|
||||
return axios.get<ResponseObject<Shortcut>>(`/api/workspace/${workspaceName}/shortcut/${shortcutName}`);
|
||||
}
|
||||
|
||||
export function createShortcut(shortcutCreate: ShortcutCreate) {
|
||||
return axios.post<ResponseObject<Shortcut>>("/api/shortcut", shortcutCreate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user