Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
91
const
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
beforeCoderTest
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected