From f1fc12f93ae3cd9e8325b42023fb0aa503115c43 Mon Sep 17 00:00:00 2001 From: Seth Holladay Date: Thu, 13 Aug 2020 16:32:47 -0400 Subject: [PATCH] Document request.route.paramNames --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ac44fe4..23893dd 100644 --- a/README.md +++ b/README.md @@ -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