MiddlewareMounterSpec

MiddlewareMounterSpec

Describes the arguments provided to mounting methods (e.g. app.post()).

Properties:
Name Type Attributes Default Description
route number | string <optional>
null

Tells which argument may be the mounting path for the other arguments. If the indicated argument is a function it is assumed the route was not provided and the indicated argument is a middleware function. If a string is provided it will be used as the mounting path.

wrapper MiddlewareWrapperFunction <optional>

A function to call for each middleware function passed to the mounter.

Source: