rename apiRouter -> privateApiRouter in Modules

This commit is contained in:
Brian Gough 2017-07-05 14:41:14 +01:00
parent 29b40ad824
commit bd83d94f64

View file

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