import { Router } from "express";

import { closureController } from "../controllers/closureController.js";
import { asyncHandler } from "../utils/asyncHandler.js";

const router = Router();

router.get("/preflight", asyncHandler(closureController.preflight));
router.post("/monthly", asyncHandler(closureController.monthly));
router.get("/annual-preflight", asyncHandler(closureController.annualPreflight));
router.post("/annual", asyncHandler(closureController.annual));
router.post("/reopen", asyncHandler(closureController.reopen));
router.get("/audit-log", asyncHandler(closureController.auditLog));

export default router;
