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

Function serveLogViewerLogin

src/log-viewer.ts:92–95  ·  view source on GitHub ↗
(_req: Request, res: Response)

Source from the content-addressed store, hash-verified

90}
91
92export function serveLogViewerLogin(_req: Request, res: Response): void {
93 res.setHeader('Content-Type', 'text/html; charset=utf-8');
94 res.send(readPublicFile('login.html'));
95}
96
97export function serveVueApp(_req: Request, res: Response): void {
98 res.sendFile(join(publicDir, 'vue', 'index.html'));

Callers 1

logViewerAuthFunction · 0.85

Calls 1

readPublicFileFunction · 0.85

Tested by

no test coverage detected