mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 10:42:14 +00:00
[TASK] Bugfixes and improvements
- Most routes now works along with getRoute() method.
This commit is contained in:
@@ -43,7 +43,7 @@ class RouterRoute extends RouterEntry {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getRoute($requestMethod, &$url) {
|
||||
public function matchRoute($requestMethod, $url) {
|
||||
|
||||
// Check if request method is allowed
|
||||
if(count($this->requestTypes) === 0 || in_array($requestMethod, $this->requestTypes)) {
|
||||
|
||||
Reference in New Issue
Block a user