import { Router } from "express";

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

const router = Router();

router.get("/", asyncHandler(entryTemplatesController.list));
router.post("/", asyncHandler(entryTemplatesController.create));
router.put("/:id", asyncHandler(entryTemplatesController.update));
router.delete("/:id", asyncHandler(entryTemplatesController.remove));

export default router;
