docs: add note about some Express middleware not working

This commit is contained in:
Dorian Niemiec 2025-01-01 22:10:35 +01:00
parent a8269e9057
commit b26b21606d

View file

@ -95,7 +95,7 @@ Parameters:
Returns: the SVRouter router (so that you can chain the methods for routes or pass-throughs) Returns: the SVRouter router (so that you can chain the methods for routes or pass-throughs)
The function adds middleware compatible with the `router` library to the SVRouter router. The function adds middleware compatible with the `router` library to the SVRouter router. Middleware that depends on Express's request and response properties may not work.
The _middleware_ parameter has these arguments of middleware compatible with the `router` library: The _middleware_ parameter has these arguments of middleware compatible with the `router` library:
- _req_ - the request object - _req_ - the request object