From eb261120fa375f6ff938f595d6a28393ac8a5f07 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 18 Oct 2021 22:11:06 +0400 Subject: [PATCH] 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 --- core/frontend/services/routing/index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/core/frontend/services/routing/index.js b/core/frontend/services/routing/index.js index 6399950070..3e26758ed8 100644 --- a/core/frontend/services/routing/index.js +++ b/core/frontend/services/routing/index.js @@ -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'); } };