diff --git a/src/Router.php b/src/Router.php index 480c378..92ef4b1 100644 --- a/src/Router.php +++ b/src/Router.php @@ -193,6 +193,11 @@ public function prepareRoutes(ServerRequestInterface $request): void $this->routesData = $this->routeCollector->getData(); } + public function getData(): array + { + return $this->routeCollector->getData(); + } + protected function buildNameIndex(): void { foreach ($this->routes as $key => $route) {