F3.1: exponer Hallazgos por familia técnica
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
import { Controller, Get, Param, ParseUUIDPipe } from '@nestjs/common';
|
||||||
|
import { RequirePermissions } from '../authorization/decorators/require-permissions.decorator';
|
||||||
|
import { InventoryFamilyCatalogService } from './inventory-family-catalog.service';
|
||||||
|
|
||||||
|
@Controller('inventory-families')
|
||||||
|
export class InventoryFamilyCatalogController {
|
||||||
|
constructor(private readonly families: InventoryFamilyCatalogService) {}
|
||||||
|
|
||||||
|
@Get(':familyId/findings')
|
||||||
|
@RequirePermissions('assets.read', 'finding_catalog.read')
|
||||||
|
findings(@Param('familyId', new ParseUUIDPipe({ version: '4' })) familyId: string) {
|
||||||
|
return this.families.findings(familyId);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user