From 06b6096f032fa511e00599e74fb942f526196dbc Mon Sep 17 00:00:00 2001 From: thosakwe Date: Sat, 22 Oct 2016 14:35:04 -0400 Subject: [PATCH] +2 --- lib/src/router.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: