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

router.use(authenticate as any);

router.get('/application/:applicationId', eorController.getChecklist);
router.get('/relocation/:relocationId', eorController.getChecklist);
router.post('/', eorController.createChecklist);
router.post('/item/:checklistId', eorController.updateItem);
router.post('/audit/:checklistId', eorController.submitAudit);

export default router;
