11
This commit is contained in:
parent
1ea9110a94
commit
ddf135daa6
3 changed files with 9 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
# angel_route
|
# angel_route
|
||||||
|
|
||||||
![version 1.0.0-dev+10](https://img.shields.io/badge/version-1.0.0--dev+10-red.svg)
|
![version 1.0.0-dev+11](https://img.shields.io/badge/version-1.0.0--dev+11-red.svg)
|
||||||
![build status](https://travis-ci.org/angel-dart/route.svg)
|
![build status](https://travis-ci.org/angel-dart/route.svg)
|
||||||
|
|
||||||
A powerful, isomorphic routing library for Dart.
|
A powerful, isomorphic routing library for Dart.
|
||||||
|
|
|
@ -242,10 +242,14 @@ class Router extends Extensible {
|
||||||
var resolved = router.resolve(path, method: method);
|
var resolved = router.resolve(path, method: method);
|
||||||
|
|
||||||
while (resolved != null) {
|
while (resolved != null) {
|
||||||
|
try {
|
||||||
routes.add(resolved);
|
routes.add(resolved);
|
||||||
router.root._children.remove(resolved);
|
router.root._children.remove(resolved);
|
||||||
|
|
||||||
resolved = router.resolve(path, method: method);
|
resolved = router.resolve(path, method: method);
|
||||||
|
} catch (e) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return routes.where((route) => route != null);
|
return routes.where((route) => route != null);
|
||||||
|
|
|
@ -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+10
|
version: 1.0.0-dev+11
|
||||||
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:
|
||||||
|
|
Loading…
Reference in a new issue