Constructor
new Route(method, path, resolver) → {Route}
Parameters:
| Name | Type | Description |
|---|---|---|
method |
string | The HTTP method of the route |
path |
string | The path of the route |
resolver |
function | The resolver function of the route |
- Source:
Returns:
- The newly created route
- Type
- Route
Members
after
Add an after middleware to the route
- Source:
before
Add a before middleware to the route
- Source: