import { handleApi } from "@/lib/api"; import { requireUser } from "@/lib/services/user"; import { getRecentActions } from "@/lib/services/action-events"; export async function GET() { return handleApi(async () => { const { user } = await requireUser(); const actions = await getRecentActions(user.id, 30); return { actions }; }); }