From bd83d94f6482946a3d10f52be0d5b4fa7c02ebf3 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 5 Jul 2017 14:41:14 +0100 Subject: [PATCH] rename apiRouter -> privateApiRouter in Modules --- services/web/app/coffee/infrastructure/Modules.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/web/app/coffee/infrastructure/Modules.coffee b/services/web/app/coffee/infrastructure/Modules.coffee index 8c2e1756b6..9d4da24c8b 100644 --- a/services/web/app/coffee/infrastructure/Modules.coffee +++ b/services/web/app/coffee/infrastructure/Modules.coffee @@ -15,14 +15,14 @@ module.exports = Modules = @modules.push loadedModule Modules.attachHooks() - applyRouter: (webRouter, apiRouter, publicApiRouter) -> + applyRouter: (webRouter, privateApiRouter, publicApiRouter) -> for module in @modules - module.router?.apply?(webRouter, apiRouter, publicApiRouter) + module.router?.apply?(webRouter, privateApiRouter, publicApiRouter) - applyNonCsrfRouter: (webRouter, apiRouter, publicApiRouter) -> + applyNonCsrfRouter: (webRouter, privateApiRouter, publicApiRouter) -> for module in @modules - module.nonCsrfRouter?.apply(webRouter, apiRouter, publicApiRouter) - module.router?.applyNonCsrfRouter?(webRouter, apiRouter, publicApiRouter) + module.nonCsrfRouter?.apply(webRouter, privateApiRouter, publicApiRouter) + module.router?.applyNonCsrfRouter?(webRouter, privateApiRouter, publicApiRouter) viewIncludes: {} loadViewIncludes: (app) ->