import { Router } from "express";
import { authenticateToken } from "../middleware/authMiddleware";
import * as ctrl from "../controllers/salesSaleController";

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

// 판매관리
router.get("/sale/list", ctrl.getSaleList);
router.post("/sale", ctrl.registerSale);
router.delete("/sale/:projectNo", ctrl.deleteSale);

// 매출관리
router.get("/revenue/list", ctrl.getRevenueList);
router.post("/revenue/deadline-info", ctrl.saveDeadlineInfo);
router.post("/revenue/deadline-confirm", ctrl.confirmSalesDeadline);

export default router;
