You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
450 B

5 years ago
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function success(res, json) {
res.status(200);
res.json({
success: true,
response: json,
});
res.end();
}
exports.success = success;
function failure(res, e) {
res.status(400);
res.json({
success: false,
error: (e && e.message) || e,
});
res.end();
}
exports.failure = failure;
//# sourceMappingURL=res.js.map