diff --git a/README.md b/README.md index e07080f..8de6925 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,9 @@ If no routes match a request path, you can specify another instance of `RequestH public function setFallback(RequestHandler $requestHandler): void ``` +> **Note** +> Middleware defined by `Router::stackMiddleware()` will _not_ be invoked when a request is forwarded to fallback handler. Use `Amp\Http\Server\Middleware\stackMiddleware()` to wrap the fallback request handler with any middlewares needed first. + ## Example ```php