1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-05 07:57:38 +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

@@ -26,6 +26,15 @@ class AltoRouter {
$this->setBasePath($basePath);
$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: