MCPcopy Index your code
hub / github.com/anomalyco/opencode / routeKeys

Function routeKeys

packages/opencode/test/server/httpapi-exercise/routing.ts:25–31  ·  view source on GitHub ↗
(spec: OpenApiSpec)

Source from the content-addressed store, hash-verified

23])
24
25export function routeKeys(spec: OpenApiSpec) {
26 return Object.entries(spec.paths ?? {})
27 .flatMap(([path, item]) =>
28 OpenApiMethods.filter((method) => item[method]).map((method) => `${method.toUpperCase()} ${path}`),
29 )
30 .sort()
31}
32
33export function routeKey(scenario: Scenario) {
34 return `${scenario.method} ${scenario.path}`

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected