MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resourceMatchesEndpoint

Function resourceMatchesEndpoint

apps/local/src/db/v1-v2-migration.ts:387–393  ·  view source on GitHub ↗
(resource: string, endpoint: string)

Source from the content-addressed store, hash-verified

385};
386
387const resourceMatchesEndpoint = (resource: string, endpoint: string): boolean => {
388 const actual = canonicalResource(resource);
389 const expected = canonicalResource(endpoint);
390 return (
391 actual != null && expected != null && (actual === expected || expected.startsWith(`${actual}/`))
392 );
393};
394
395const protectedResourceMetadataUrls = (endpoint: string): readonly string[] => {
396 try {

Callers 1

Calls 1

canonicalResourceFunction · 0.85

Tested by

no test coverage detected