import { Router } from "express";

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

const router = Router();

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

export default router;
