feat: edicion de usuarios y profesionales desde el admin
Backend: agrega PATCH /users/:id y PATCH /professionals/:id (protegidos). Admin: pagina de usuario con edicion de nombre/telefono/ciudad/genero; pagina de profesional con dos secciones editables independientes (datos personales y perfil profesional). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
e7afbf6d7b
commit
abc19505ae
@@ -37,6 +37,13 @@ export class UsersController {
|
||||
return this.users.updateFcmToken(req.user.sub, dto.token);
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
updateById(@Param('id') id: string, @Body() dto: UpdateUserDto) {
|
||||
return this.users.update(id, dto);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findById(@Param('id') id: string) {
|
||||
return this.users.findById(id);
|
||||
|
||||
Reference in New Issue
Block a user