Begin update for 2.x

This commit is contained in:
Tobe O 2018-09-04 20:57:39 -04:00
parent 7b12541842
commit 4369c52a28
3 changed files with 13 additions and 14 deletions

View file

@ -8,7 +8,7 @@ import 'package:logging/logging.dart';
main() async {
// Watch the config/ and web/ directories for changes, and hot-reload the server.
var hot = new HotReloader(() async {
var app = new Angel()..lazyParseBodies = true;
var app = new Angel();
await app.configure(configureServer);
hierarchicalLoggingEnabled = true;
app.logger = new Logger('angel');

View file

@ -39,11 +39,11 @@ AngelConfigurer configureServer(FileSystem fileSystem) {
fileSystem,
source: fileSystem.directory('web'),
);
app.use(vDir.handleRequest);
app.fallback(vDir.handleRequest);
}
// Throw a 404 if no route matched the request.
app.use(() => throw new AngelHttpException.notFound());
app.fallback((req, res) => throw new AngelHttpException.notFound());
// Set our application up to handle different errors.
//

View file

@ -5,16 +5,15 @@ environment:
sdk: '>=2.0.0-dev <3.0.0'
homepage: https://github.com/angel-dart/angel
dependencies:
angel_auth: ^1.1.0 # Supports stateless authentication via JWT
angel_configuration: ^1.2.0 # Loads application configuration, along with support for .env files.
angel_cors: ^1.0.0 # CORS support
angel_framework: ^1.1.0 # The core server library.
angel_jael: ^1.0.0 # Server-side templating engine
angel_static: ^1.3.0 # Static file server
angel_validate: ^1.0.0 # Allows for validation of input data
dart2_constant: ^1.0.0 # For backwards compatibility.
angel_auth: ^2.0.0-alpha # Supports stateless authentication via JWT
angel_configuration: ^2.0.0 # Loads application configuration, along with support for .env files.
#angel_cors: ^1.0.0 # CORS support
angel_framework: ^2.0.0-alpha # The core server library.
#angel_jael: ^1.0.0 # Server-side templating engine
angel_static: ^2.0.0-alpha # Static file server
angel_validate: ^2.0.0-alpha # Allows for validation of input data
dev_dependencies:
angel_hot: ^1.1.0 # Hot-reloading support. :)
angel_test: ^1.1.0 # Utilities for testing Angel servers.
#angel_hot: ^1.1.0 # Hot-reloading support. :)
angel_test: ^2.0.0-alpha # Utilities for testing Angel servers.
io: ^0.3.2
test: ^0.12.13
test: ^1.0.0