mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-05 15:09:08 +00:00
FEAT: Roles and permissions modules
This commit is contained in:
@@ -39,9 +39,14 @@ export class UsersController {
|
||||
@Post()
|
||||
@ApiOkResponse({ type: CreateUserRes })
|
||||
async createUser(@User() user, @Body() body: CreateUserReq) {
|
||||
console.log(body);
|
||||
this.logger.info('createUser', { user });
|
||||
}
|
||||
|
||||
@Post('batch')
|
||||
@ApiOkResponse({ type: CreateUserRes })
|
||||
async batchCreateUser(@User() user, @Body() body: CreateUserReq) {
|
||||
this.logger.info('batchCreateUser', { user });
|
||||
}
|
||||
@Delete(':id')
|
||||
@ApiOkResponse({ type: DeleteUserRes })
|
||||
async deleteUser(@User() user, @Param('id') id: string) {
|
||||
|
||||
Reference in New Issue
Block a user