This commit is contained in:
thosakwe 2016-10-22 14:37:27 -04:00
parent 06b6096f03
commit 014892cba5
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ class Router extends Extensible {
return new Route('/', debug: debug, handlers: handlers, method: method) return new Route('/', debug: debug, handlers: handlers, method: method)
..debug = debug; ..debug = debug;
} else { } else {
result = resolve(segments[0]); result = resolve(segments[0], filter: (route) => route.method == method);
if (result != null) { if (result != null) {
if (segments.length > 1) { if (segments.length > 1) {

View file

@ -1,6 +1,6 @@
name: angel_route name: angel_route
description: A powerful, isomorphic routing library for Dart. description: A powerful, isomorphic routing library for Dart.
version: 1.0.0-dev+2 version: 1.0.0-dev+3
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_route homepage: https://github.com/angel-dart/angel_route
dev_dependencies: dev_dependencies: