mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
5e963935f9
refs #9589
15 lines
364 B
JavaScript
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;
|