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) ->