/**
 * wace_plm → 우리 DB 데이터 import 라우트 (SUPER_ADMIN 전용)
 */
import { Router } from "express";
import { authenticateToken } from "../middleware/authMiddleware";
import { WacePlmDataImportController } from "../controllers/wacePlmDataImportController";

const router = Router();

router.post("/all",        authenticateToken, WacePlmDataImportController.importAll);
router.post("/ecr",        authenticateToken, WacePlmDataImportController.importEcr);
router.post("/cs",         authenticateToken, WacePlmDataImportController.importCs);
router.post("/masters",    authenticateToken, WacePlmDataImportController.importMasters);
router.post("/approval",   authenticateToken, WacePlmDataImportController.importApproval);
router.post("/comm-code",        authenticateToken, WacePlmDataImportController.importCommCode);
router.post("/user-info",        authenticateToken, WacePlmDataImportController.importUserInfo);
router.post("/comm-code-seed",   authenticateToken, WacePlmDataImportController.seedCommCodeFromFile);

export default router;
