FEAT: Roles and permissions modules

This commit is contained in:
Gabriel Rosa
2022-07-08 17:28:23 -03:00
parent ea04f59e04
commit 4cff593695
18 changed files with 440 additions and 106 deletions
+6 -1
View File
@@ -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) {