0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/services/members/index.js

30 lines
1.1 KiB
JavaScript
Raw Normal View History

const config = require('../../config/index.js');
const common = require('../../lib/common');
module.exports = {
get api() {
if (!config.get('enableDeveloperExperiments')) {
return {
apiRouter: function (req, res, next) {
return next(new common.errors.NotFoundError());
},
staticRouter: function (req, res, next) {
return next(new common.errors.NotFoundError());
},
ssr: {
2019-04-17 18:26:32 +05:30
exchangeTokenForSession: function () {
return Promise.reject(new common.errors.InternalServerError());
},
2019-04-17 18:26:32 +05:30
deleteSession: function () {
return Promise.reject(new common.errors.InternalServerError());
},
2019-04-17 18:26:32 +05:30
getMemberDataFromSession: function () {
return Promise.reject(new common.errors.InternalServerError());
}
}
};
}
return require('./api');
}
};