mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
8fd4b3f09f
no issue - Added read and browse admin API for members
22 lines
551 B
JavaScript
22 lines
551 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());
|
|
}
|
|
},
|
|
members(req, res, next) {
|
|
if (labsUtil.isSet('members') === true) {
|
|
return next();
|
|
} else {
|
|
return next(new common.errors.NotFoundError());
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = labs;
|