This commit is contained in:
thosakwe 2016-10-22 14:39:23 -04:00
parent fcb02178db
commit 8423fa4116
2 changed files with 3 additions and 3 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], (route) => route.method == method); result = resolve(segments[0], (route) => route.method == method || route.method == '*');
if (result != null) { if (result != null) {
if (segments.length > 1) { if (segments.length > 1) {
@ -65,7 +65,7 @@ class Router extends Extensible {
Route existing; Route existing;
do { do {
existing = result.resolve(segments[0], filter: (route) => route.method == method); existing = result.resolve(segments[0], filter: (route) => route.method == method || route.method == '*');
if (existing != null) { if (existing != null) {
result = existing; result = existing;

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+3 version: 1.0.0-dev+4
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: