new ep uso and new ep in costo

This commit is contained in:
2026-02-25 13:01:34 -06:00
6 changed files with 42 additions and 5 deletions
+6 -1
View File
@@ -4,7 +4,7 @@ import { JwtAuthGuard } from 'src/user/jwt.guard';
@Controller('costo')
export class CostoController {
constructor(private readonly costoService: CostoService) {}
constructor(private readonly costoService: CostoService) { }
@UseGuards(JwtAuthGuard)
@Get()
@@ -12,4 +12,9 @@ export class CostoController {
return this.costoService.findAll();
}
@UseGuards(JwtAuthGuard)
@Get('/:id_servicio')
find(@Param('id_servicio') id_servicio: number) {
return this.costoService.find(id_servicio);
}
}