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

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

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