MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / paramMatcher

Function paramMatcher

pages/api/mock/[...slug].ts:56–58  ·  view source on GitHub ↗
(slugSegment: string, pathSegment: string)

Source from the content-addressed store, hash-verified

54 });
55 if (matchEnd.length === 1) return matchEnd;
56 const paramMatcher = (slugSegment: string, pathSegment: string) =>
57 (pathSegment.includes("{") && pathSegment.includes("}")) ||
58 slugSegment === pathSegment;
59
60 // slug = 'api/v2/Coordinators/1234'. matches = "/api/v2/Coordinators/{id}". "/api/v2/Coordinators/location"
61 const matchWithParams = matches.filter((match) => {

Callers 1

processMultipleMatchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected