mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Updated documentation
This commit is contained in:
@@ -222,7 +222,7 @@ class RouterBase {
|
||||
|
||||
if ($route->matchRoute($this->request)) {
|
||||
|
||||
if (!in_array($this->request->getMethod(), $route->getRequestMethods())) {
|
||||
if (count($route->getRequestMethods()) && !in_array($this->request->getMethod(), $route->getRequestMethods())) {
|
||||
$routeNotAllowed = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user