13
This commit is contained in:
parent
565bf0b279
commit
5897a9839b
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# angel_route
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
A powerful, isomorphic routing library for Dart.
|
||||
|
|
|
@ -224,7 +224,7 @@ class Router extends Extensible {
|
|||
final String _path = path.replaceAll(_straySlashes, '');
|
||||
final segments = _path.split('/').where((str) => str.isNotEmpty);
|
||||
_printDebug('Segments: $segments');
|
||||
return _resolve(root, _path, method, segments.first, segments.skip(1));
|
||||
return _resolve(root, _path, method, segments.isNotEmpty ? segments.first : '', segments.skip(1));
|
||||
}
|
||||
|
||||
/// Finds every possible [Route] that matches the given path,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: angel_route
|
||||
description: A powerful, isomorphic routing library for Dart.
|
||||
version: 1.0.0-dev+12
|
||||
version: 1.0.0-dev+13
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/angel_route
|
||||
dev_dependencies:
|
||||
|
|
Loading…
Reference in a new issue