import { Controller, Get, Param } from '@nestjs/common'; import { ApiBearerAuth, ApiTags } from '@nestjs/swagger'; import { TreatmentsService } from './treatments.service'; @ApiTags('treatments') @ApiBearerAuth() @Controller('colonies') export class ColonyTreatmentsController { constructor(private readonly treatmentsService: TreatmentsService) {} @Get(':id/treatments') findByColony(@Param('id') id: string) { return this.treatmentsService.findByColony(id); } }