| Argument | Description | Default |
|---|---|---|
path |
The path for which the middleware function is invoked; can be any of:
|
'/' (root path) |
callback |
Callback functions; can be:
You can provide multiple callback functions that behave just like middleware, except
that these callbacks can invoke Since router and app implement the middleware interface, you can use them as you would any other middleware function. For examples, see Middleware callback function examples. |
None |