Manage SystemManagers
This commit is contained in:
@@ -85,4 +85,22 @@ export class ApiService {
|
||||
deleteCylinder(cylinder: ICylinder): Observable<any> {
|
||||
return this.http.delete(`api/cylinder/${cylinder.id}`)
|
||||
}
|
||||
|
||||
deleteUser(id: string) {
|
||||
return this.http.delete(`api/user/${id}`)
|
||||
}
|
||||
|
||||
addManager(systemID: string, email: string): Observable<IUser[]> {
|
||||
return this.http.post<IUser[]>(`api/system/${systemID}/manager`, {
|
||||
email,
|
||||
action: 'add'
|
||||
});
|
||||
}
|
||||
|
||||
removeManager(systemID: string, email: string): Observable<IUser[]> {
|
||||
return this.http.post<IUser[]>(`api/system/${systemID}/manager`, {
|
||||
email,
|
||||
action: 'remove'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user