mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
eb261120fa
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
16 lines
319 B
JavaScript
16 lines
319 B
JavaScript
const registry = require('./registry');
|
|
const RouterManager = require('./router-manager');
|
|
const routerManager = new RouterManager({registry});
|
|
|
|
module.exports = {
|
|
routerManager: routerManager,
|
|
|
|
get registry() {
|
|
return registry;
|
|
},
|
|
|
|
get helpers() {
|
|
return require('./helpers');
|
|
}
|
|
};
|