Ghost/core/server/web/shared/middlewares/labs.js
Rishabh Garg fcd275f6c0 Refactored web/middleware and web/utils to web/shared (#9892)
refs #9866

- Moved web/middleware to web/shared/middlewares
- Moved util file to web/shared/utils
2018-09-20 20:04:34 +02:00

15 lines
350 B
JavaScript

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;