MCPcopy Index your code
hub / github.com/coder/coder / isApiCall

Function isApiCall

site/e2e/hooks.ts:91–96  ·  view source on GitHub ↗
(urlString: string)

Source from the content-addressed store, hash-verified

89};
90
91const isApiCall = (urlString: string): boolean => {
92 const url = new URL(urlString);
93 const apiPath = "/api/v2";
94
95 return url.pathname.startsWith(apiPath);
96};

Callers 1

beforeCoderTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected