Remix
Remix
remix/router · FunctionView Source

Middleware

Summary

Handles a request and optionally delegates to the next middleware or handler.

Signature

interface Middleware {
  (
    context: RequestContext<any>,
    next: NextFunction,
  ): void | Response | Promise<void | Response | undefined> | undefined;
}