radio/magnus/middleware/pageInMagnus.js

10 lines
191 B
JavaScript
Raw Normal View History

2018-08-04 21:46:25 +00:00
"use strict";
module.exports = function(req, res, next) {
if (global.magnus.hasPage(req.path)) {
res.reply("Building " + req.path + "...");
} else {
next();
}
};