TreatmentsModule mit Erfassung und Colony-Historie-Endpunkt fuer Tierarzneimittel-Behandlungen.
16 lines
478 B
TypeScript
16 lines
478 B
TypeScript
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);
|
|
}
|
|
}
|