feat: userr management
This commit is contained in:
@@ -178,4 +178,16 @@ export class AdminManagementService {
|
||||
throw new Error(error.error || "Failed to remove team member");
|
||||
}
|
||||
}
|
||||
|
||||
// User Management
|
||||
static async deleteUser(userId: string): Promise<void> {
|
||||
const response = await fetch(`${this.baseUrl}/users/${userId}`, {
|
||||
method: "DELETE",
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
const error = await response.json();
|
||||
throw new Error(error.error || "Failed to delete user");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user