Fix router path matching with a valid URI object.

This commit is contained in:
Madeorsk 2024-11-08 22:42:06 +01:00
parent 3524f2618c
commit 9964d87e1e
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F

View file

@ -74,6 +74,6 @@ abstract class Routes
*/
public function match(ServerRequestInterface $request): RouteMatch
{
return $this->tree->match($this->splitUri($request->getUri()), $request);
return $this->tree->match($this->splitUri($request->getUri()->getPath()), $request);
}
}