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

const router = Router();

/**
 * [CORE_INT_03] 商品发布接口
 */
router.post('/', requireTraceContext, PublishController.publish);

/**
 * [CORE_NODE_03] Node Agent 回执接口
 */
router.post('/receipt', PublishController.reportReceipt);

export default router;
