(groupIndex, endpointCount)
| 107 | ` |
| 108 | |
| 109 | const group = (groupIndex, endpointCount) => { |
| 110 | const identifier = `group${String(groupIndex).padStart(3, "0")}` |
| 111 | return ` HttpApiGroup.make("${identifier}").add( |
| 112 | ${endpoints(endpointCount)} |
| 113 | )` |
| 114 | } |
| 115 | |
| 116 | const multipleGroupsApi = (groupCount, endpointCount) => `const api = HttpApi.make("Api").add( |
| 117 | ${Array.from({ length: groupCount }, (_, index) => group(index + 1, endpointCount)).join(",\n")} |
no test coverage detected