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

Function isPublicPath

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

Source from the content-addressed store, hash-verified

8}
9
10function isPublicPath(pathname: string) {
11 return pathname === '/login'
12 || pathname.startsWith('/api/auth/login')
13 || pathname.startsWith('/_next')
14 || pathname.startsWith('/icons/')
15 || pathname.startsWith('/generated/')
16 || pathname === '/favicon.ico';
17}
18
19function isApiPath(pathname: string) {
20 return pathname.startsWith('/api/');

Callers 1

proxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected