diff --git a/lib/src/router.dart b/lib/src/router.dart index cc42d9c2..2df8b1db 100644 --- a/lib/src/router.dart +++ b/lib/src/router.dart @@ -65,7 +65,7 @@ class Router extends Extensible { Route existing; do { - existing = result.resolve(segments[0]); + existing = result.resolve(segments[0], filter: (route) => route.method == method); if (existing != null) { result = existing; diff --git a/pubspec.yaml b/pubspec.yaml index ce4c4909..d3d7280f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: angel_route description: A powerful, isomorphic routing library for Dart. -version: 1.0.0-dev+1 +version: 1.0.0-dev+2 author: Tobe O homepage: https://github.com/angel-dart/angel_route dev_dependencies: