+1
This commit is contained in:
parent
196f79af94
commit
cb3430e233
4 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -76,7 +76,6 @@ class VirtualDirectory {
|
|||
}
|
||||
|
||||
router.get('$publicPath/*', handler);
|
||||
router.get(publicPath, (req, res) => serveFile('', res));
|
||||
}
|
||||
|
||||
serveFile(String path, ResponseContext res) async {
|
||||
|
|
|
@ -2,7 +2,7 @@ name: angel_static
|
|||
description: Static server middleware for Angel.
|
||||
homepage: https://github.com/angel-dart/angel_static
|
||||
author: thosakwe <thosakwe@gmail.com>
|
||||
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"
|
||||
|
|
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue