Ghost/core/server/web/shared/middlewares/labs.js

15 lines
350 B
JavaScript
Raw Normal View History

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