Add support for deleting a subuser from a server
This commit is contained in:
parent
a6f46d36ba
commit
1270e51248
11 changed files with 158 additions and 107 deletions
9
resources/scripts/api/server/users/deleteSubuser.ts
Normal file
9
resources/scripts/api/server/users/deleteSubuser.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import http from '@/api/http';
|
||||
|
||||
export default (uuid: string, userId: string): Promise<void> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.delete(`/api/client/servers/${uuid}/users/${userId}`)
|
||||
.then(() => resolve())
|
||||
.catch(reject);
|
||||
});
|
||||
};
|
Reference in a new issue