import { Router } from 'express';
import { authenticateToken } from '../middlewares/auth.middleware';
import { asyncHandler } from '../middlewares/errorHandler.middleware';
import { cpcPermissionController } from '../controllers/cpcPermission.controller';

const router = Router();

router.use(authenticateToken);

router.get(
  '/permissions',
  asyncHandler(cpcPermissionController.getPermissions.bind(cpcPermissionController))
);

export default router;

