1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-04 15:37:45 +02:00

Update AltoRouter.php

Added function getRoutes(). Often it's nice to process routes or display them without extending AltoRouter.
This commit is contained in:
Sebastian Pöll
2014-12-19 15:26:51 +01:00
parent a7a6b99ac8
commit 009f163c3d

View File

@@ -27,6 +27,14 @@ class AltoRouter {
$this->addMatchTypes($matchTypes);
}
/**
* Retrieves all routes.
* Useful if you want to process or display routes.
*/
public function getRoutes() {
return $this->routes;
}
/**
* Add multiple routes at once from array in the following format:
*