MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isReservedPath

Function isReservedPath

packages/server/src/routes/webAssets.ts:95–102  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

93}
94
95function isReservedPath(pathname: string): boolean {
96 return (
97 pathname === '/api' ||
98 pathname.startsWith('/api/') ||
99 pathname === '/documentation' ||
100 pathname.startsWith('/documentation/')
101 );
102}
103
104function mimeType(filePath: string): string {
105 switch (extname(filePath)) {

Callers 1

serveWebAssetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected