Ghost/core/server/web/middleware/labs.js
2017-12-14 03:01:23 +01:00

16 lines
366 B
JavaScript

var labsUtil = require('../../services/labs'),
common = require('../../lib/common'),
labs;
labs = {
subscribers: function subscribers(req, res, next) {
if (labsUtil.isSet('subscribers') === true) {
return next();
} else {
return next(new common.errors.NotFoundError());
}
}
};
module.exports = labs;