Files
ApiCore/ApiCore-Backend/src/treatments/colony-treatments.controller.ts
T
Nick Szaunig 61e0bbe794 feat(backend): Behandlungen-Modul (Modul 8)
TreatmentsModule mit Erfassung und Colony-Historie-Endpunkt fuer
Tierarzneimittel-Behandlungen.
2026-08-22 00:04:50 +02:00

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);
}
}