Add support for deleting a subuser from a server

This commit is contained in:
Dane Everitt 2020-03-27 15:32:33 -07:00
parent a6f46d36ba
commit 1270e51248
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
11 changed files with 158 additions and 107 deletions

View 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);
});
};