rprcli
Version:
Reaper.js is a powerful TypeScript-based framework designed to streamline backend development. It offers built-in database migrations, seeders, and SQL query utilities, making it easy to manage data efficiently. With native support for TSX and JSX renderi
22 lines (21 loc) • 406 B
JavaScript
module.exports = class ReaperResponse{
res;
Render;
constructor(res,Render){
this.res = res;
this.Render = Render;
}
render(template,data){
this.Render(template,data);
}
status(code){
this.res.status(code);
return this;
}
text(data){
this.res.send(data);
}
json(body){
this.res.json(body);
}
}