Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import { Controller, Get, Post, Body, Param, Req } from '@nestjs/common'; import { ApiTags, ApiOperation } from '@nestjs/swagger'; import { ProductionExecutionService } from '../../../domains/manufacturing/services/production-execution.service'; @ApiTags('Mobile Manufacturing') @Controller('api/v1/mobile/manufacturing') export class MobileManufacturingController { constructor( private readonly executionSvc: ProductionExecutionService ) {} @Post('operator/confirm') @ApiOperation({ summary: 'Confirm shop-floor routing operation details' }) async confirmOperation(@Req() req: any, @Body() body: any) { const tenantId = req.headers['x-tenant-id'] || '60c72b2f9b1d8b23c4d5e6f1'; return this.executionSvc.confirmOperation(tenantId, body); } } |