forked from Ynov/ptitspas-ynov-back
enfants controller corrected
This commit is contained in:
parent
2f351b8302
commit
476623b9fd
@ -8,10 +8,11 @@ import { Children } from 'src/entities/children.entity';
|
||||
import { CreateEnfantsDto } from './dto/create_enfants.dto';
|
||||
import { EnfantResponseDto } from './dto/enfants_response.dto';
|
||||
import { mapEnfantsToResponseDto, mapEnfantToResponseDto } from './enfants.mapper';
|
||||
import { AuthGuard } from 'src/common/guards/auth.guard';
|
||||
|
||||
@ApiBearerAuth()
|
||||
@ApiTags('Enfants')
|
||||
@UseGuards(RolesGuard)
|
||||
@UseGuards(AuthGuard,RolesGuard)
|
||||
@Controller('enfants')
|
||||
export class EnfantsController {
|
||||
constructor(private readonly enfantsService: EnfantsService) { }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user