MCPcopy
hub / github.com/7836246/cursor2api / readPublicFile

Function readPublicFile

src/log-viewer.ts:19–21  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

17const publicDir = join(__dirname, '..', 'public');
18
19function readPublicFile(filename: string): string {
20 return readFileSync(join(publicDir, filename), 'utf-8');
21}
22
23// ==================== API 路由 ====================
24

Callers 3

serveLogViewerFunction · 0.85
serveLogViewerLoginFunction · 0.85
servePublicFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected