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

Function isApiPath

apps/cloud/src/app-paths.ts:16–16  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

14// ---------------------------------------------------------------------------
15
16export const isApiPath = (pathname: string) => pathname === "/api" || pathname.startsWith("/api/");
17
18export const isAppOwnedPath = (pathname: string) =>
19 isApiPath(pathname) || classifyMcpPath(pathname) !== null;

Callers 1

isAppOwnedPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected