feat: delete user

This commit is contained in:
Methapon2001 2024-04-10 13:37:33 +07:00
parent 32127ae804
commit 7e6325d359
2 changed files with 30 additions and 1 deletions

View file

@ -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();