feat: delete user
This commit is contained in:
parent
32127ae804
commit
7e6325d359
2 changed files with 30 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ import { Body, Controller, Delete, Get, Path, Post, Put, Route, Security, Tags }
|
|||
import {
|
||||
addUserRoles,
|
||||
createUser,
|
||||
deleteUser,
|
||||
editUser,
|
||||
getRoles,
|
||||
removeUserRoles,
|
||||
|
|
@ -30,6 +31,11 @@ export class KeycloakController extends Controller {
|
|||
return await editUser(userId, body);
|
||||
}
|
||||
|
||||
@Delete("user/{userId}")
|
||||
async deleteUser(@Path() userId: string) {
|
||||
return await deleteUser(userId);
|
||||
}
|
||||
|
||||
@Get("role")
|
||||
async getRole() {
|
||||
const role = await getRoles();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue