FRED3
This commit is contained in:
@@ -37,13 +37,13 @@ export class AuthController {
|
||||
return req.user;
|
||||
}
|
||||
|
||||
@UseGuards(AuthGuard)
|
||||
//@UseGuards(AuthGuard)
|
||||
@Put('Modificacion/:id')
|
||||
async update(@Param('id') id: number, @Body() updateUserDto: Record<string, any>) {
|
||||
return this.authService.update(id, updateUserDto);
|
||||
}
|
||||
|
||||
@UseGuards(AuthGuard)
|
||||
//@UseGuards(AuthGuard)
|
||||
@Delete('Borrado/:id')
|
||||
async remove(@Param('id') id: number) {
|
||||
await this.authService.remove(id);
|
||||
|
||||
Reference in New Issue
Block a user