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:
Lizandro Guarnizo
2026-06-27 08:22:40 -05:00
co-authored by Claude Sonnet 4.6
parent e7afbf6d7b
commit abc19505ae
5 changed files with 338 additions and 197 deletions
@@ -52,6 +52,13 @@ export class ProfessionalsController {
return this.pros.findByUserId(req.user.sub);
}
@Patch(':id')
@UseGuards(JwtAuthGuard)
@ApiBearerAuth()
updateById(@Param('id') id: string, @Body() dto: UpdateProfessionalDto) {
return this.pros.updateById(id, dto);
}
@Get(':id')
findById(@Param('id') id: string) {
return this.pros.findById(id);