0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/frontend/services/routing
Naz 5a62253466 Removed "router" dependency from UrlGenerator
refs https://github.com/TryGhost/Toolbox/issues/127

- Passing around whole instance of a frontend router was an overkill when there are only 3 static pieces of information that needed to be loaded. Extracting the router out makes the UrlGenerator way more readable, tests slimer, and the memory footpring of the process should be slightly lighter
- The toString overloading didn't make sense at the time of this refactor, maybe if there's a concrete usecase we could resurect it in a form of passing in a router's name or something.
2021-11-15 18:32:34 +04:00
..
config Added "email post" frontend routing 2021-08-13 12:09:11 +04:00
controllers Renamed bootstrap to routerManager 2021-10-19 07:29:09 +13:00
helpers Swapped to American English spellings 2021-08-13 10:26:33 +04:00
middlewares Removed remaining use of i18n from core/frontend 2021-09-28 11:58:29 +01:00
CollectionRouter.js Removed bootstrap module dependency from frontend routers 2021-10-19 07:29:09 +13:00
EmailRouter.js Switched post routing to uuid instead of slug 2021-08-19 12:27:45 +04:00
index.js Clened up routing module API from unused exports 2021-10-19 07:29:09 +13:00
ParentRouter.js Extracted an explicit "filter" parameter in UrlGenerator constructor 2021-11-15 18:32:34 +04:00
PreviewRouter.js Added "email post" frontend routing 2021-08-13 12:09:11 +04:00
registry.js Removed event chain caused by settings date update 2021-10-19 07:29:09 +13:00
router-manager.js Removed "router" dependency from UrlGenerator 2021-11-15 18:32:34 +04:00
RSSRouter.js Corrected comment describing redirect behavior 2020-09-23 00:37:55 +12:00
StaticPagesRouter.js Removed bootstrap module dependency from frontend routers 2021-10-19 07:29:09 +13:00
StaticRoutesRouter.js Removed bootstrap module dependency from frontend routers 2021-10-19 07:29:09 +13:00
TaxonomyRouter.js Removed bootstrap module dependency from frontend routers 2021-10-19 07:29:09 +13:00
UnsubscribeRouter.js