Skip to content

compose

compose(middleware): (context, next?) => Promise<any>

Defined in: src/middleware.ts:10

Composes a list of middleware into a single function. This is the onion model (Koa-style).

CRITICAL: This must build the chain ONCE, not rebuild it on every request.

Middleware[]

(context, next?): Promise<any>

ShokupanContext<unknown>

NextFn

Promise<any>