@axonlabs/core
    Preparing search index...

    Type Alias Middleware<P>

    Middleware: (
        request: Request<P>,
        response: Response,
        next: NextFunc,
    ) => Promise<void> | void

    The Middleware type represents a function that acts as middleware in a web application. Middleware functions have access to the Request object, the Response object, and a NextFunc function.

    Type Parameters

    • P = {}

    Type declaration