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

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

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