route
The main function used to create a route branch
Arguments
Name | Type | Description |
routePath | Array | The array of paths for this branch |
methods | Array | An array of Methods to listen for |
middleware | Array | An array of middleware that should be applied to this route |
If you set middleware at this stage, it will be applied regardless of method
Usage
Last updated