Open buschtoens opened 5 years ago
Related issues from the graveyard: https://github.com/koajs/koa/issues/71, https://github.com/koajs/koa/pull/74
I kind of expected to be able to mount a koa app in an express app.
You currently can only do the following:
expressApp.use('/some-path', koaApp.callback());
But this then fully takes over /some-path. There is no way to call next in the koaApp and yield back to the expressApp.
/some-path
next
koaApp
expressApp
Do you think this is a feature that we could and should support?
My motivation for this is that I am developing a middleware / plugin (verdaccio-oidc) for Verdaccio, which unfortunately is based on Express. I'd love to use koa for this though.
verdaccio-oidc
Related issues from the graveyard: https://github.com/koajs/koa/issues/71, https://github.com/koajs/koa/pull/74
I kind of expected to be able to mount a koa app in an express app.
You currently can only do the following:
But this then fully takes over
/some-path
. There is no way to callnext
in thekoaApp
and yield back to theexpressApp
.Do you think this is a feature that we could and should support?