MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / isApiPath

Function isApiPath

apps/web/proxy.ts:19–21  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

17}
18
19function isApiPath(pathname: string) {
20 return pathname.startsWith('/api/');
21}
22
23export async function proxy(request: NextRequest) {
24 const { pathname } = request.nextUrl;

Callers 1

proxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected