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

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

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