radio/magnus/middleware/reply.js
2018-08-05 00:48:17 +03:00

9 lines
185 B
JavaScript

"use strict";
var path = require("path");
module.exports = function(req, res, next) {
res.reply = function(info) {
this.render("index", {info: info});
};
next();
};