Skip to content

Commit

Permalink
Add method allowed check
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Oct 6, 2016
1 parent d884e00 commit af96bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ride/library/router/GenericRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function getRouteFromPath($method, $path, $baseUrl = null) {
continue;
}

if ($resultRoute && $resultRoute->getPath() == $route->getPath() && $resultRoute->getBaseUrl() == $routeBaseUrl) {
if ($resultRoute && $resultRoute->getPath() == $route->getPath() && $resultRoute->getBaseUrl() == $routeBaseUrl && $resultRoute->isMethodAllowed($method)) {
// already matched a route with this path and baseUrl
continue;
}
Expand Down

0 comments on commit af96bc2

Please sign in to comment.