Files
adventure/apps/web/src/app/api/actions/recent/route.ts
Zaine 3b37368e7d
Some checks failed
CI / test (push) Has been cancelled
initial 2
2026-06-26 09:26:50 +01:00

12 lines
350 B
TypeScript
Executable File

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 };
});
}