Use express middlewares in Koa2, the one that really works.
Bytes is a JavaScript newsletter you'll actually enjoy reading.
Delivered every Monday, for free.
Loved by over 200,000 developers