MCPcopy Create free account
hub / github.com/Forward-Future/loopy / stripBasePath

Function stripBasePath

loop-library/worker/src/loop-routes.js:653–658  ·  view source on GitHub ↗
(pathname, basePath)

Source from the content-addressed store, hash-verified

651 headers: { "Content-Type": "application/json" },
652 ...init,
653 });
654}
655
656function catalogResponse(path, loops, method) {
657 if (path === "/catalog.json") {
658 return jsonResponse(catalogObject(loops), 200, CACHE_HEADERS, method);
659 }
660 if (path === "/sitemap.xml") {
661 return textResponse(renderSitemap(loops), "application/xml; charset=utf-8", 200, CACHE_HEADERS, method);

Callers 2

handleLoopRouteFunction · 0.70
publicOriginRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected