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

Function isDocsPath

apps/cloud/src/edge/docs.ts:20–21  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

18const DOCS_UPSTREAM_HOST = "executor.mintlify.dev";
19
20export const isDocsPath = (pathname: string) =>
21 pathname === "/docs" || pathname.startsWith("/docs/");
22
23// Build the upstream request for an already-classified `/docs` path. Caller
24// guarantees `isDocsPath(pathname)` — we only swap the origin and fix up the

Callers 2

docs.test.tsFile · 0.90
docs.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected