0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Clened up routing module API from unused exports

refs https://linear.app/tryghost/issue/CORE-104/decouple-frontend-routing-events-from-urlserver-events

- CollectionRouter and TaxonomyRouter getters were exposed for no good reason. The less we expose the cleaner it is to understand possible dependencies the mocule creates
This commit is contained in:
Naz 2021-10-18 22:11:06 +04:00 committed by naz
parent 51b78211c5
commit eb261120fa

View file

@ -6,18 +6,10 @@ module.exports = {
routerManager: routerManager,
get registry() {
return require('./registry');
return registry;
},
get helpers() {
return require('./helpers');
},
get CollectionRouter() {
return require('./CollectionRouter');
},
get TaxonomyRouter() {
return require('./TaxonomyRouter');
}
};