From 24fc679ed8a25a4e979e4fd840f3a8acc279a62e Mon Sep 17 00:00:00 2001 From: regiostech Date: Thu, 28 Apr 2016 21:10:29 -0400 Subject: [PATCH] Service path --- lib/src/http/routable.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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