diff --git a/README.md b/README.md index 9e186754..4ea17e81 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ In `pubspec.yaml`: ```yaml dependencies: angel_framework: ^1.0.0-dev - angel_static: ^1.1.0-dev + angel_static: ^1.1.0-dev+1 ``` # Usage diff --git a/lib/src/virtual_directory.dart b/lib/src/virtual_directory.dart index a16ffce4..ceb724fe 100644 --- a/lib/src/virtual_directory.dart +++ b/lib/src/virtual_directory.dart @@ -76,7 +76,6 @@ class VirtualDirectory { } router.get('$publicPath/*', handler); - router.get(publicPath, (req, res) => serveFile('', res)); } serveFile(String path, ResponseContext res) async { diff --git a/pubspec.yaml b/pubspec.yaml index b593fd00..d564240e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: angel_static description: Static server middleware for Angel. homepage: https://github.com/angel-dart/angel_static author: thosakwe -version: 1.1.0-dev +version: 1.1.0-dev+1 dependencies: angel_framework: ">=1.0.0-dev < 2.0.0" mime: ">= 0.9.3 < 0.10.0" diff --git a/test/all_test.dart b/test/all_test.dart index 9b41167c..3043e126 100644 --- a/test/all_test.dart +++ b/test/all_test.dart @@ -26,9 +26,7 @@ main() { app.get('*', 'Fallback'); - app - ..normalize() - ..dumpTree(showMatchers: true); + app.dumpTree(showMatchers: true); await app.startServer(InternetAddress.LOOPBACK_IP_V4, 0); url = "http://${app.httpServer.address.host}:${app.httpServer.port}";