mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
fcd275f6c0
refs #9866 - Moved web/middleware to web/shared/middlewares - Moved util file to web/shared/utils
15 lines
350 B
JavaScript
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;
|