mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-04 07:27:36 +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:
@@ -27,6 +27,14 @@ class AltoRouter {
|
|||||||
$this->addMatchTypes($matchTypes);
|
$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:
|
* Add multiple routes at once from array in the following format:
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user