import { listActivitySince } from '@/lib/delegation.js';

export const runtime = 'nodejs';
export const dynamic = 'force-dynamic';

export async function GET(_req, { params }) {
  const { cursor } = await params;
  return Response.json({ events: listActivitySince(cursor) });
}
