mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
5a62253466
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. |
||
---|---|---|
.. | ||
configs | ||
index.js | ||
Queue.js | ||
Resource.js | ||
Resources.js | ||
UrlGenerator.js | ||
Urls.js | ||
UrlService.js |