feat(backend): Durchsichten-Modul (Modul 5)
InspectionsModule mit CRUD, Colony-Historie-Endpunkt und Folgeaufgaben-Erstellung aus einer Durchsicht heraus.
This commit is contained in:
1 parent
49ce23147c
commit
9b59e4bb35
10 files changed
+489
-1
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { Controller, Get, Param } from '@nestjs/common';
|
||||
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
|
||||
import { InspectionsService } from './inspections.service';
|
||||
|
||||
@ApiTags('inspections')
|
||||
@ApiBearerAuth()
|
||||
@Controller('colonies')
|
||||
export class ColonyInspectionsController {
|
||||
constructor(private readonly inspectionsService: InspectionsService) {}
|
||||
|
||||
@Get(':id/inspections')
|
||||
findByColony(@Param('id') id: string) {
|
||||
return this.inspectionsService.findByColony(id);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user