/**
 * [BE-ROUTE-019] 物流决策路由
 * 提供物流决策AI介入的RESTful API路由
 */

import { Router } from 'express';
import { LogisticsDecisionController } from '../controllers/LogisticsDecisionController';
import { requireTraceContext } from '../../core/guards/trace-context.guard';

const router = Router();

router.post('/ai-decision', requireTraceContext, LogisticsDecisionController.makeDecision);
router.post('/freight/audit', requireTraceContext, LogisticsDecisionController.auditFreight);
router.post('/delay/warn', requireTraceContext, LogisticsDecisionController.warnDelay);
router.get('/trace/:orderId', requireTraceContext, LogisticsDecisionController.traceLogistics);

export default router;
