/**
 * 출하지시 라우트
 */
import { Router } from "express";
import { authenticateToken } from "../middleware/authMiddleware";
import * as shippingOrderController from "../controllers/shippingOrderController";

const router = Router();
router.use(authenticateToken);

router.get("/list", shippingOrderController.getList);
router.get("/preview-no", shippingOrderController.previewNextNo);
router.post("/save", shippingOrderController.save);
router.post("/delete", shippingOrderController.remove);

// 모달 왼쪽 패널 데이터 소스
router.get("/source/shipment-plan", shippingOrderController.getShipmentPlanSource);
router.get("/source/sales-order", shippingOrderController.getSalesOrderSource);
router.get("/source/item", shippingOrderController.getItemSource);

export default router;
