Spaces:
Runtime error
Runtime error
| import { | |
| Controller, | |
| Get, | |
| Post, | |
| Body, | |
| Patch, | |
| Param, | |
| Delete, | |
| } from '@nestjs/common'; | |
| import { ShipperService } from './shipper.service'; | |
| import { CreateShipperDto } from '@bpm/data/dto/shipper/create-shipper.dto'; | |
| import { UpdateShipperDto } from '@bpm/data/dto/shipper/update-shipper.dto'; | |
| (['shipper', 'shippers']) | |
| export class ShipperController { | |
| constructor(private readonly shipperService: ShipperService) {} | |
| () | |
| create(() createShipperDto: CreateShipperDto) { | |
| return this.shipperService.create(createShipperDto); | |
| } | |
| () | |
| findAll() { | |
| return this.shipperService.findAll(); | |
| } | |
| (':id') | |
| findOne(('id') id: string) { | |
| return this.shipperService.findOne(+id); | |
| } | |
| (':id') | |
| update(('id') id: string, () updateShipperDto: UpdateShipperDto) { | |
| return this.shipperService.update(+id, updateShipperDto); | |
| } | |
| (':id') | |
| remove(('id') id: string) { | |
| return this.shipperService.remove(+id); | |
| } | |
| } | |