mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
20a898a986
no issue - Updated members auth flow UI - Updated members settings and routing to be dynamic
19 lines
560 B
JavaScript
19 lines
560 B
JavaScript
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());
|
|
}
|
|
};
|
|
}
|
|
return require('./api');
|
|
}
|
|
};
|