Ghost/core/server/web/middleware/labs.js

15 lines
364 B
JavaScript
Raw Normal View History

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