import { Router } from 'express'; import * as contractCategoryController from '../controllers/contractCategory.controller.js'; import { authenticate, requirePermission } from '../middleware/auth.js'; const router = Router(); router.get('/', authenticate, contractCategoryController.getContractCategories); router.post('/', authenticate, requirePermission('platforms:create'), contractCategoryController.createContractCategory); router.get('/:id', authenticate, contractCategoryController.getContractCategory); router.put('/:id', authenticate, requirePermission('platforms:update'), contractCategoryController.updateContractCategory); router.delete('/:id', authenticate, requirePermission('platforms:delete'), contractCategoryController.deleteContractCategory); export default router;