mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-02-06 05:28:29 +01:00
Merge pull request #97 from SebastianPoell/patch-1
Update AltoRouter.php
This commit is contained in:
commit
fa50148d7b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user