import { withAuth, withPermission } from '@/lib/api/helpers';

import { getHandler, patchHandler, deleteHandler } from './handlers';

export const GET = withAuth(withPermission('companies', 'view', getHandler));
export const PATCH = withAuth(withPermission('companies', 'edit', patchHandler));
export const DELETE = withAuth(withPermission('companies', 'delete', deleteHandler));
