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

import { getHandler, postHandler } from './handlers';

export const GET = withAuth(withPermission('berths', 'view', getHandler));
export const POST = withAuth(withPermission('berths', 'edit', postHandler));
