initial commit
This commit is contained in:
commit
4b60ece582
327 changed files with 28286 additions and 0 deletions
8
magnus/middleware/reply.js
Normal file
8
magnus/middleware/reply.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
"use strict";
|
||||
var path = require("path");
|
||||
module.exports = function(req, res, next) {
|
||||
res.reply = function(info) {
|
||||
this.render("index", {info: info});
|
||||
};
|
||||
next();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue