mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 10:05:24 -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.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) ->
|
||||
|
|
Loading…
Reference in a new issue