Ghost/core/server/services/route-settings
Naz 99a2f12cb7 Simplified yaml parser to have fewer dependencies
refs https://linear.app/tryghost/issue/CORE-35/refactor-route-and-redirect-settings
refs 5715aa2155 (diff-48644be82a9b957e5e627bf7b0f2f73cdb1d63851ffad68c7c178c5886495bb8R52-R57)

- Simplified the yaml parser implementation to take in a single parameter, this move will allove to simplify the logic in the route settings + opens a door to unify handling with redirects yaml parsing!
- We loose the "filename" from the error information but that was a generic "routes.yaml" anyway and would be thrown only when somebody uploaded a routes.yaml file (no real added value).
- The debug statement should be moved to contain related filepath+other info to the calling module instead
- An additional error handler was borrowed from the redirects yaml parsing logic that was introduced in a referenced commit - it still makes sense to keep it for routes.yaml configuration
2021-09-30 17:29:43 +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 Refactored settings loader to class 2021-09-30 17:29:42 +02:00
route-settings.js Extracted yarml persed dep out of settings loader 2021-09-30 17:29:42 +02:00
settings-loader.js Removed unnecessary parameter 2021-09-30 17:29:42 +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