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

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

export const GET = withAuth(withPermission('memberships', 'view', listHandler));
export const POST = withAuth(withPermission('memberships', 'manage', createHandler));
