new ep uso and new ep in costo
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user