import { Router } from "express";

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

const router = Router();

router.get("/", asyncHandler(fiscalYearsController.list));
router.post("/", asyncHandler(fiscalYearsController.create));

export default router;
