/**
 * Approvals Routes
 *
 * Router configuration for tool approval management endpoints.
 *
 * @module controllers/approvals/approvals.routes
 */
import { Router } from 'express';
import { getPendingApprovals, approveRequest, rejectRequest } from './approvals.controller.js';
/**
 * Create the approvals router with pending, approve, and reject endpoints.
 *
 * @returns Express router for /api/approvals routes
 */
export function createApprovalsRouter() {
    const router = Router();
    // GET /api/approvals/pending — list pending approval requests
    router.get('/pending', getPendingApprovals);
    // POST /api/approvals/:id/approve — approve a pending request
    router.post('/:id/approve', approveRequest);
    // POST /api/approvals/:id/reject — reject a pending request
    router.post('/:id/reject', rejectRequest);
    return router;
}
//# sourceMappingURL=approvals.routes.js.map