What is a middleware? A middleware in Koa is simply a function that takes two parameters: the Koa context object (ctx) and a function that represents the next middleware in the stack (next). Middlewares can modify the ctx object and control the flow ...

Markdown supported · ⌘↵ to post
No responses yet.