import { withAuth, withPermission } from '@/lib/api/helpers';
import { createHandler, listHandler } from './handlers';

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