From 6edcaab280f9f936ec3369429feb7cdbd7c68153 Mon Sep 17 00:00:00 2001 From: Erick Tucto Date: Sun, 14 May 2023 21:37:12 -0500 Subject: [PATCH] Public getData --- src/Router.php | 5 +++++ 1 file changed, 5 insertions(+) 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) {