Ghost/core/server/web/middleware/labs.js
2018-09-10 14:07:57 +02:00

15 lines
364 B
JavaScript

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;