radio/magnus/middleware/reply.js

9 lines
185 B
JavaScript
Raw Normal View History

2018-08-04 21:46:25 +00:00
"use strict";
var path = require("path");
module.exports = function(req, res, next) {
res.reply = function(info) {
this.render("index", {info: info});
};
next();
};