import express from 'express';
const router = express.Router();
import * as loiController from './loi.controller.js';
import { authenticate } from '../../common/middleware/auth.js';

router.use(authenticate as any);

router.get('/request/:applicationId', loiController.getRequest);
router.post('/request', loiController.createRequest);
router.post('/request/:requestId/approve', loiController.approveRequest);
router.get('/request/:applicationId/approval-status', loiController.getApprovalStatus);
router.post('/request/:requestId/acknowledge', loiController.acknowledgeRequest);
router.post('/request/:requestId/generate', loiController.generateDocument);

export default router;
