delete removed
This commit is contained in:
parent
7d47fbd8de
commit
d030234c1f
@ -52,13 +52,4 @@ export class ParentsController {
|
||||
update(@Param('id') id: string, @Body() dto: UpdateParentsDto): Promise<Parents> {
|
||||
return this.parentsService.update(id, dto);
|
||||
}
|
||||
|
||||
@Roles(RoleType.SUPER_ADMIN, RoleType.GESTIONNAIRE)
|
||||
@Delete(':id')
|
||||
@ApiResponse({ status: 200, description: 'Parent supprimé avec succès' })
|
||||
@ApiResponse({ status: 404, description: 'Parent introuvable' })
|
||||
@ApiResponse({ status: 403, description: 'Accès refusé' })
|
||||
remove(@Param('id') id: string): Promise<void> {
|
||||
return this.parentsService.remove(id);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user