Type alias ApiMiddleware

ApiMiddleware: ((request, response, next) => any)

Describes a middleware for an API endpoint.

Type declaration

    • (request, response, next): any
    • Parameters

      • request: NextApiRequest

        The request context.

      • response: NextApiResponse<any>

        The response context.

      • next: MiddlewareNextFunction

        The next function.

      Returns any

Generated using TypeDoc