diff --git a/src/Pecee/SimpleRouter/Router.php b/src/Pecee/SimpleRouter/Router.php index da9e06d..855f98b 100644 --- a/src/Pecee/SimpleRouter/Router.php +++ b/src/Pecee/SimpleRouter/Router.php @@ -939,6 +939,16 @@ class Router { return $this->debugList; } + + /** + * Get the current processing route details. + * + * @return array + */ + public function getCurrentProcessingRoute(): array + { + return $this->currentProcessingRoute; + } /** * Changes the rendering behavior of the router.