diff --git a/lib/src/router.dart b/lib/src/router.dart index 889a2352..a24d4878 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], (route) => route.method == method); + result = resolve(segments[0], (route) => route.method == method || route.method == '*'); if (result != null) { if (segments.length > 1) { @@ -65,7 +65,7 @@ class Router extends Extensible { Route existing; 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) { result = existing; diff --git a/pubspec.yaml b/pubspec.yaml index 3f1faa16..26dd02b8 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+3 +version: 1.0.0-dev+4 author: Tobe O homepage: https://github.com/angel-dart/angel_route dev_dependencies: