Skip to content

Commit

Permalink
Document request.route.paramNames
Browse files Browse the repository at this point in the history
  • Loading branch information
sholladay authored Aug 13, 2020
1 parent a5d292c commit f1fc12f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ The response that will be sent for the request. To create a new response, see [`
Type: `object`

The route that is handling the request, as given to [`server.route()`](#serverrouteroute-options-handler), with the following additional properties:
- `params` is an object with properties for each dynamic path parameter
- `paramNames` is an array of path parameter names
- `params` is an object with properties for each path parameter, where the key is the parameter name, and the value is the corresponding part of the request path
- `segments` is an array of path parts, as in the values separated by `/` slashes in the route path

#### request.search
Expand Down

0 comments on commit f1fc12f

Please sign in to comment.