Type alias RouteHandler

RouteHandler: ((req, res, next) => void)

RouteHandler represents a handler for a route on an API.

Implementations should invoke methods on res to respond to the request, or invoke next to pass control to the next available handler on the route for further processing.

Type declaration

    • (req, res, next): void
    • Parameters

      Returns void

Generated using TypeDoc