From 014892cba533d9dd12c3a577d82265fd6f5164a7 Mon Sep 17 00:00:00 2001 From: thosakwe Date: Sat, 22 Oct 2016 14:37:27 -0400 Subject: [PATCH] +3 --- 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 2df8b1db..530492ca 100644 --- a/lib/src/router.dart +++ b/lib/src/router.dart @@ -55,7 +55,7 @@ class Router extends Extensible { return new Route('/', debug: debug, handlers: handlers, method: method) ..debug = debug; } else { - result = resolve(segments[0]); + result = resolve(segments[0], filter: (route) => route.method == method); if (result != null) { if (segments.length > 1) { diff --git a/pubspec.yaml b/pubspec.yaml index d3d7280f..3f1faa16 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+2 +version: 1.0.0-dev+3 author: Tobe O homepage: https://github.com/angel-dart/angel_route dev_dependencies: