composite & deleted

This commit is contained in:
seb
2026-07-12 20:39:01 +02:00
parent 3ca6e894ab
commit ca190b2832
17 changed files with 571 additions and 11 deletions

View File

@@ -0,0 +1,14 @@
import { sendJson } from '../http.js';
import { getDeletedEntityList } from '../queries/deleted-entity-list.js';
export const method = 'GET';
export const path = '/v1/deletedentity';
export async function handle(_req, res, { url }) {
const cursor = Number(url.searchParams.get('lastChangedDeletedEntity')) || 0;
const limit = Number(url.searchParams.get('limit')) || 600;
const deletedEntities = await getDeletedEntityList({ cursor, limit });
return sendJson(res, 200, deletedEntities);
}