MCPcopy
hub / github.com/modstart-lib/aigcpanel / sendJson

Function sendJson

electron/mapi/httpserver/main.ts:190–192  ·  view source on GitHub ↗
(res: Response, statusCode: number, data: any)

Source from the content-addressed store, hash-verified

188};
189
190const sendJson = (res: Response, statusCode: number, data: any) => {
191 res.status(statusCode).json(data);
192};
193
194const createApp = (port: number, token: string) => {
195 const app = express();

Callers 1

createAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected