mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
rename apiRouter -> privateApiRouter in Modules
This commit is contained in:
parent
29b40ad824
commit
bd83d94f64
1 changed files with 5 additions and 5 deletions
|
@ -15,14 +15,14 @@ module.exports = Modules =
|
||||||
@modules.push loadedModule
|
@modules.push loadedModule
|
||||||
Modules.attachHooks()
|
Modules.attachHooks()
|
||||||
|
|
||||||
applyRouter: (webRouter, apiRouter, publicApiRouter) ->
|
applyRouter: (webRouter, privateApiRouter, publicApiRouter) ->
|
||||||
for module in @modules
|
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
|
for module in @modules
|
||||||
module.nonCsrfRouter?.apply(webRouter, apiRouter, publicApiRouter)
|
module.nonCsrfRouter?.apply(webRouter, privateApiRouter, publicApiRouter)
|
||||||
module.router?.applyNonCsrfRouter?(webRouter, apiRouter, publicApiRouter)
|
module.router?.applyNonCsrfRouter?(webRouter, privateApiRouter, publicApiRouter)
|
||||||
|
|
||||||
viewIncludes: {}
|
viewIncludes: {}
|
||||||
loadViewIncludes: (app) ->
|
loadViewIncludes: (app) ->
|
||||||
|
|
Loading…
Reference in a new issue