Add status management and documents view to pro detail page
- Backend: deactivate and set-pending endpoints for status control - Admin detail: Aprobar/Rechazar/Desactivar/En revisión buttons based on current state - Admin detail: Documentos section showing ID photo and certificate - Admin detail: deny now confirms before deleting Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
efb48e017f
commit
7935e48fae
@@ -82,6 +82,20 @@ export class ProfessionalsController {
|
||||
return this.pros.upsert(req.user.sub, dto);
|
||||
}
|
||||
|
||||
@Post(':id/deactivate')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
deactivate(@Param('id') id: string) {
|
||||
return this.pros.deactivate(id);
|
||||
}
|
||||
|
||||
@Post(':id/set-pending')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
setPending(@Param('id') id: string) {
|
||||
return this.pros.setPending(id);
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
|
||||
Reference in New Issue
Block a user