Open polRk opened 5 years ago
console.log([...middleware.values()]) // [ [AsyncFunction], [AsyncFunction] ]
But
server.middleware.push(...middleware.values()) // It's working
And this works
server.use(compose([...middleware.values()]))
node.js version: v12.2.0
npm/yarn and version: v6.9.0
koa-router
version: ^7.4.0koa
version: ^2.7.0Code sample:
Expected Behavior:
All handlers(middleware) should work
Actual Behavior:
No handler works
Log: