1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-06 16:36:43 +02:00

Merge pull request #97 from SebastianPoell/patch-1

Update AltoRouter.php
This commit is contained in:
Danny van Kooten
2015-03-01 22:35:53 +07:00

View File

@@ -27,6 +27,15 @@ class AltoRouter {
$this->addMatchTypes($matchTypes); $this->addMatchTypes($matchTypes);
} }
/**
* Retrieves all routes.
* Useful if you want to process or display routes.
* @return array All 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:
* *