MCPcopy
hub / github.com/callumalpass/tasknotes / sendResponse

Function sendResponse

src/api/BaseController.ts:12–14  ·  view source on GitHub ↗
(res: HTTPResponseLike, statusCode: number, data: unknown)

Source from the content-addressed store, hash-verified

10
11export abstract class BaseController {
12 protected sendResponse(res: HTTPResponseLike, statusCode: number, data: unknown): void {
13 sendJSONResponse(res, statusCode, data);
14 }
15
16 protected successResponse<T>(data: T, message?: string): APIResponse<T> {
17 return { success: true, data, message };

Callers

nothing calls this directly

Calls 1

sendJSONResponseFunction · 0.90

Tested by

no test coverage detected