MCPcopy
hub / github.com/fosrl/pangolin / response

Function response

server/lib/response.ts:4–15  ·  view source on GitHub ↗
(
    res: Response,
    { data, success, error, message, status }: ResponseT<T>
)

Source from the content-addressed store, hash-verified

2import { Response } from "express";
3
4export const response = <T>(
5 res: Response,
6 { data, success, error, message, status }: ResponseT<T>
7) => {
8 return res.status(status).send({
9 data,
10 success,
11 error,
12 message,
13 status
14 });
15};
16
17export default response;

Callers 15

hybrid.tsFile · 0.90
transferSessionFunction · 0.90
getSessionTransferTokenFunction · 0.90
billingWebhookHandlerFunction · 0.90
setResourcePolicyPincodeFunction · 0.90
verifyDeviceWebAuthFunction · 0.90
checkResourceSessionFunction · 0.90
initialSetupCompleteFunction · 0.90
resetPasswordFunction · 0.90
changePasswordFunction · 0.90

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected