composeRoutes
One of the most important functions within the framework, takes a list of routes and composes them into a single function for the server
Arguments
Name
Type
Description
opts
Object
The options object to apply to the octoris server
routes
Map[]
The routing tree built out by the route functions
middleware
Function[]
An array of middleware functions
Middleware run at this level is considered global middleware, meaning it will be ran before ANY route is called on.
Options
Usage
Last updated
Was this helpful?