mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Simplified route-settings module api signature
refs https://linear.app/tryghost/issue/CORE-35/refactor-route-and-redirect-settings - There's no additional logic, so wrapping with a function is unnecessary
This commit is contained in:
parent
7a91917424
commit
ebc33180a1
1 changed files with 1 additions and 3 deletions
|
@ -151,9 +151,7 @@ module.exports.init = init;
|
|||
* {routes: {}, collections: {}, resources: {}}
|
||||
* @returns {Object} routes.yaml in JSON format
|
||||
*/
|
||||
module.exports.loadRouteSettingsSync = () => {
|
||||
return SettingsLoader.loadSettingsSync();
|
||||
};
|
||||
module.exports.loadRouteSettingsSync = SettingsLoader.loadSettingsSync;
|
||||
|
||||
module.exports.api = {
|
||||
setFromFilePath: setFromFilePath,
|
||||
|
|
Loading…
Reference in a new issue