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

10 lines
191 B
JavaScript

"use strict";
module.exports = function(req, res, next) {
if (global.magnus.hasPage(req.path)) {
res.reply("Building " + req.path + "...");
} else {
next();
}
};