Moved RoutesHandler into settings module
- To keep in convention with settings described in - https://github.com/TryGhost/Ghost/issues/9528 , extracted routes handler into separate settings folder
This commit is contained in:
parent
dc68f37b86
commit
61dc9e8c24
@ -17,9 +17,5 @@ module.exports = {
|
||||
|
||||
get TaxonomyRouter() {
|
||||
return require('./TaxonomyRouter');
|
||||
},
|
||||
|
||||
get settings() {
|
||||
return require('./SettingsHandler');
|
||||
}
|
||||
};
|
||||
|
5
core/frontend/services/settings/index.js
Normal file
5
core/frontend/services/settings/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
get routes() {
|
||||
return require('./RoutesHandler');
|
||||
}
|
||||
};
|
@ -1,7 +1,7 @@
|
||||
const Promise = require('bluebird');
|
||||
const _ = require('lodash');
|
||||
const models = require('../../models');
|
||||
const frontendRouting = require('../../../frontend/services/routing');
|
||||
const frontendSettings = require('../../../frontend/services/settings');
|
||||
const common = require('../../lib/common');
|
||||
const settingsCache = require('../../services/settings/cache');
|
||||
|
||||
@ -147,7 +147,7 @@ module.exports = {
|
||||
method: 'edit'
|
||||
},
|
||||
query(frame) {
|
||||
return frontendRouting.settings.activate(frame.file.path);
|
||||
return frontendSettings.routes.activate(frame.file.path);
|
||||
}
|
||||
},
|
||||
|
||||
@ -165,7 +165,7 @@ module.exports = {
|
||||
method: 'browse'
|
||||
},
|
||||
query() {
|
||||
return frontendRouting.settings.serve();
|
||||
return frontendSettings.routes.serve();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user