mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
192ebb1739
refs #9178 - move tests as well
16 lines
366 B
JavaScript
16 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;
|