ltijs
Version:
Easily turn your web application into a LTI 1.3 Learning Tool.
25 lines • 604 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpressHttpResponse = void 0;
class ExpressHttpResponse {
res;
constructor(res) {
this.res = res;
}
status(code) {
this.res.status(code);
return this;
}
redirect(url) {
this.res.redirect(url);
}
html(content) {
this.res.type('html').send(content);
}
json(body) {
this.res.json(body);
}
}
exports.ExpressHttpResponse = ExpressHttpResponse;
exports.default = ExpressHttpResponse;
//# sourceMappingURL=express-http-response.js.map