DocWeave / frontend /src /api /activity.js
shak3008's picture
fix: complete knowledge lifecycle and activity pagination
1215cfd
Raw
History Blame Contribute Delete
301 Bytes
import { apiRequest } from "./client";
export async function listActivity(workspaceId, limit = 50, cursor = null) {
let url = `/activity?workspace_id=${encodeURIComponent(workspaceId)}&limit=${limit}`;
if (cursor) url += `&cursor=${encodeURIComponent(cursor)}`;
return apiRequest(url);
}