/**
 * Amaranth 전자결재 프록시 라우트
 */
import { Router } from "express";
import { authenticateToken } from "../middleware/authMiddleware";
import { AmaranthApprovalController } from "../controllers/amaranthApprovalController";

const router = Router();

router.get("/box", authenticateToken, AmaranthApprovalController.box);
router.get("/docs", authenticateToken, AmaranthApprovalController.docList);
router.get("/docs/:docId", authenticateToken, AmaranthApprovalController.docDetail);
router.post("/sso", authenticateToken, AmaranthApprovalController.ssoUrl);
router.post("/submit", authenticateToken, AmaranthApprovalController.submit);
router.post("/auth-token", authenticateToken, AmaranthApprovalController.authToken);

export default router;
