MiddlewareMounterSpec

new MiddlewareMounterSpec(params)

Parameters:
NameTypeDescription
paramsMiddlewareMounterSpecParams

Members

route :RouteParserFunction|string|number

Indicates which argument specifies the mounting path for the other arguments in a middleware mounting method's arguments list. When set to 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. If a number is provided, then it indicates the position in the arguments list that represents the route.

Type:

wrapper :MiddlewareWrapperFunction

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