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

import { listHandler, createHandler } from './handlers';

export const GET = withAuth(withPermission('companies', 'view', listHandler));
export const POST = withAuth(withPermission('companies', 'create', createHandler));
