chore: add delete user button

This commit is contained in:
Steven
2023-08-22 23:02:14 +08:00
parent ec2ec74e31
commit e91050c803
5 changed files with 42 additions and 12 deletions

View File

@@ -43,8 +43,8 @@ export function patchUser(userPatch: UserPatch) {
return axios.patch<User>(`/api/v1/user/${userPatch.id}`, userPatch);
}
export function deleteUser(userDelete: UserDelete) {
return axios.delete(`/api/v1/user/${userDelete.id}`);
export function deleteUser(userId: UserId) {
return axios.delete(`/api/v2/users/${userId}`);
}
export function getShortcutList(shortcutFind?: ShortcutFind) {