0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/middleware/labs.js

16 lines
387 B
JavaScript
Raw Normal View History

var errors = require('../errors'),
labsUtil = require('../utils/labs'),
labs;
labs = {
subscribers: function subscribers(req, res, next) {
if (labsUtil.isSet('subscribers') === true) {
return next();
} else {
return errors.handleAPIError(new errors.NotFoundError(), req, res, next);
}
}
};
module.exports = labs;