This commit is contained in:
seb
2026-07-06 01:31:11 +02:00
commit 917930d0fa
34 changed files with 2912 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { sendJson } from '../http.js';
import { getCustomerGroupList } from '../queries/customer-groups.js';
export const method = 'GET';
export const path = '/v1/customergroup';
export async function handle(_req, res, { url }) {
const cursor = Number(url.searchParams.get('lastChangedCustomerGroup')) || 0;
const customerGroups = await getCustomerGroupList({ cursor });
return sendJson(res, 200, customerGroups);
}