mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 11:31:55 +02:00
Make apply module function async
This will allow us to support async module loading required for ES modules support. GitOrigin-RevId: bfd925c94ca3b6df8f75f704e21164a546973f5f
This commit is contained in:
@@ -68,7 +68,7 @@ const loadModules = _.memoize(loadModulesImpl)
|
||||
async function applyRouter(webRouter, privateApiRouter, publicApiRouter) {
|
||||
for (const module of await modules()) {
|
||||
if (module.router && module.router.apply) {
|
||||
module.router.apply(webRouter, privateApiRouter, publicApiRouter)
|
||||
await module.router.apply(webRouter, privateApiRouter, publicApiRouter)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user