diff --git a/lib/src/http/routable.dart b/lib/src/http/routable.dart index 23f3fce5..7f979537 100644 --- a/lib/src/http/routable.dart +++ b/lib/src/http/routable.dart @@ -39,7 +39,7 @@ class Routable extends Extensible { } if (routable is Service) { - services[path.toString()] = routable; + services[path.toString().trim().replaceAll(new RegExp(r'(^\/+)|(\/+$)'), '')] = routable; } } diff --git a/pubspec.yaml b/pubspec.yaml index d35f5c76..8489bf2a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_framework -version: 0.0.0-dev.7 +version: 0.0.0-dev.8 description: Core libraries for the Angel framework. author: Tobe O homepage: https://github.com/angel-dart/angel_framework