mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-06 08:27:39 +02:00
Merge pull request #97 from SebastianPoell/patch-1
Update AltoRouter.php
This commit is contained in:
@@ -26,6 +26,15 @@ class AltoRouter {
|
|||||||
$this->setBasePath($basePath);
|
$this->setBasePath($basePath);
|
||||||
$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:
|
||||||
|
Reference in New Issue
Block a user