This commit is contained in:
TioSam77
2024-06-18 16:53:38 -06:00
10 changed files with 33 additions and 27 deletions
+1 -7
View File
@@ -27,7 +27,7 @@ export class AuthController {
}
@Post("register")
async postRegister(@Body() data: registerDto){
async register(@Body() data: registerDto){
return this.authService.register(data)
}
@@ -37,12 +37,6 @@ export class AuthController {
return req.user;
}
@UseGuards(AuthGuard)
@Post('Alta')
async create(@Body() data: UserDto) {
return this.authService.create(data);
}
@UseGuards(AuthGuard)
@Put('Modificacion/:id')
async update(@Param('id') id: number, @Body() updateUserDto: Record<string, any>) {