MCPcopy
hub / github.com/aspen-cloud/triplit / ServerResponse

Function ServerResponse

packages/server-core/src/session.ts:32–37  ·  view source on GitHub ↗
(statusCode: number = 200, payload?: any)

Source from the content-addressed store, hash-verified

30};
31
32export function ServerResponse(statusCode: number = 200, payload?: any) {
33 return {
34 payload,
35 statusCode,
36 };
37}
38
39function NotAdminResponse() {
40 const error = new ServiceKeyRequiredError();

Callers 15

handleRequestMethod · 0.85
NotAdminResponseFunction · 0.85
routeNotFoundResponseFunction · 0.85
clearDBMethod · 0.85
getCollectionStatsMethod · 0.85
getSchemaMethod · 0.85
overrideSchemaMethod · 0.85
queryTriplesMethod · 0.85
fetchMethod · 0.85
insertMethod · 0.85
bulkInsertMethod · 0.85
insertTriplesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected