0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/web/middleware/labs.js
2017-12-14 03:01:23 +01:00

15 lines
366 B
JavaScript

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