Ghost/core/server/services/url
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
..
configs Moved URL service to backend 2021-10-19 07:29:09 +13:00
index.js Parameterized url cache storage path 2021-11-13 01:01:28 +13:00
Queue.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
Resource.js Fixed typo 2021-11-11 16:52:11 +04:00
Resources.js Exposed config initialization from Resources 2021-11-12 12:18:17 +04:00
UrlGenerator.js Removed "router" dependency from UrlGenerator 2021-11-15 18:32:34 +04:00
Urls.js Booting instance with persisted urls 2021-11-13 01:01:28 +13:00
UrlService.js Removed "router" dependency from UrlGenerator 2021-11-15 18:32:34 +04:00