From 96f96424b60c1ece2776f672255a631a2b8fb899 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Wed, 1 Jan 2025 20:23:19 +0100 Subject: [PATCH] docs: improve the description for the "router.pass" function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd25614..938ac84 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ Parameters: Returns: the SVRouter router (so that you can chain the methods for routes or pass-throughs) -The function adds middleware to the SVRouter router. The middleware can be an another SVRouter router (the absolute request URLs need to be provided for the _router.route_ function in the SVRouter router). +The function adds a pass-through (can be middleware) to the SVRouter router. The pass-through can be to an another SVRouter router (the absolute request URLs need to be provided for the _router.route_ function in the SVRouter router). The _callback_ parameter has these arguments of the SVR.JS mod callback: - _req_ - the SVR.JS request object