From 7a699456d224e9910430850e4c01c92e7cb03d44 Mon Sep 17 00:00:00 2001 From: thosakwe Date: Sat, 22 Oct 2016 14:46:16 -0400 Subject: [PATCH] Can overwrite now... --- lib/src/router.dart | 4 +--- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/src/router.dart b/lib/src/router.dart index a24d4878..274ebf58 100644 --- a/lib/src/router.dart +++ b/lib/src/router.dart @@ -71,9 +71,7 @@ class Router extends Extensible { result = existing; } } while (existing != null); - } else - throw new RoutingException( - "Cannot overwrite existing route '${segments[0]}'."); + } } } diff --git a/pubspec.yaml b/pubspec.yaml index 26dd02b8..affb431c 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+4 +version: 1.0.0-dev+5 author: Tobe O homepage: https://github.com/angel-dart/angel_route dev_dependencies: