Middleware
Summary
Handles a request and optionally delegates to the next middleware or handler.
Signature
interface Middleware {
(
context: RequestContext<params>,
next: NextFunction,
): void | Response | Promise<void | Response | undefined> | undefined;
}