mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 07:51:55 +03:00
7bcccc71dc
refs #9178 - move express apps to one place (called `web`) - requires https://github.com/TryGhost/Ghost-Admin/pull/923 - any further improvements are not part of this PR - this PR just moves the files and ensures the paths are up-to-date
16 lines
360 B
JavaScript
16 lines
360 B
JavaScript
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 next(new errors.NotFoundError());
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = labs;
|