import { sendJson } from '../utils/response.js';
export async function handleDefinitions(req, res, aggregator, url) {
    const apiGroups = url.searchParams.get('apiGroups')?.split(',');
    const typescript = await aggregator.generateTypeScript(apiGroups);
    sendJson(res, {
        typescript,
        apiGroups: aggregator.getApiGroups(),
        version: '1.0.0',
    });
}
//# sourceMappingURL=definitions.controller.js.map