0
Fork 0
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:
Naz 2021-09-27 12:51:00 +02:00 committed by naz
parent 7a91917424
commit ebc33180a1

View file

@ -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,