This commit is contained in:
thosakwe 2016-11-27 19:51:47 -05:00
parent 196f79af94
commit cb3430e233
4 changed files with 3 additions and 6 deletions

View file

@ -11,7 +11,7 @@ In `pubspec.yaml`:
```yaml ```yaml
dependencies: dependencies:
angel_framework: ^1.0.0-dev angel_framework: ^1.0.0-dev
angel_static: ^1.1.0-dev angel_static: ^1.1.0-dev+1
``` ```
# Usage # Usage

View file

@ -76,7 +76,6 @@ class VirtualDirectory {
} }
router.get('$publicPath/*', handler); router.get('$publicPath/*', handler);
router.get(publicPath, (req, res) => serveFile('', res));
} }
serveFile(String path, ResponseContext res) async { serveFile(String path, ResponseContext res) async {

View file

@ -2,7 +2,7 @@ name: angel_static
description: Static server middleware for Angel. description: Static server middleware for Angel.
homepage: https://github.com/angel-dart/angel_static homepage: https://github.com/angel-dart/angel_static
author: thosakwe <thosakwe@gmail.com> author: thosakwe <thosakwe@gmail.com>
version: 1.1.0-dev version: 1.1.0-dev+1
dependencies: dependencies:
angel_framework: ">=1.0.0-dev < 2.0.0" angel_framework: ">=1.0.0-dev < 2.0.0"
mime: ">= 0.9.3 < 0.10.0" mime: ">= 0.9.3 < 0.10.0"

View file

@ -26,9 +26,7 @@ main() {
app.get('*', 'Fallback'); app.get('*', 'Fallback');
app app.dumpTree(showMatchers: true);
..normalize()
..dumpTree(showMatchers: true);
await app.startServer(InternetAddress.LOOPBACK_IP_V4, 0); await app.startServer(InternetAddress.LOOPBACK_IP_V4, 0);
url = "http://${app.httpServer.address.host}:${app.httpServer.port}"; url = "http://${app.httpServer.address.host}:${app.httpServer.port}";