import { Router } from "express";

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

const router = Router();

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

export default router;
