0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/services/route-settings
Naz 7619ad31d4 Extracted yaml parsing into DI for settings loader
refs https://linear.app/tryghost/issue/CORE-35/refactor-route-and-redirect-settings

- When the yaml parser is injected through a DI it's easier to test and later on the redirects service initialization would use same pattern with exactly the same yamlParse funciton
- Next step is getting yaml parser into an outside module
- Also simplified getSettingFilePath method while swapping to an updated yaml parser implementation. Now this method function is exactly like the one used in redirects
2021-09-30 17:33:17 +02:00
..
default-routes.yaml Moved default-routes.yaml file to backend 2021-09-28 04:59:41 +13:00
default-settings-manager.js Refactored ensure settings module into a class with DI 2021-09-29 20:56:55 +02:00
index.js Extracted yaml parsing into DI for settings loader 2021-09-30 17:33:17 +02:00
route-settings.js Extracted yarml persed dep out of settings loader 2021-09-30 17:29:42 +02:00
settings-loader.js Extracted yaml parsing into DI for settings loader 2021-09-30 17:33:17 +02:00
validate.js Removed remaining use of i18n from core/frontend 2021-09-28 11:58:29 +01:00
yaml-parser.js Simplified yaml parser to have fewer dependencies 2021-09-30 17:29:43 +02:00