This commit is contained in:
thosakwe 2016-12-21 15:35:53 -05:00
parent fd7375cde2
commit 2a62666b23

View file

@ -1,6 +1,7 @@
/// This app's route configuration.
library angel.routes;
import 'package:angel_compress/angel_compress.dart';
import 'package:angel_cors/angel_cors.dart';
import 'package:angel_errors/angel_errors.dart';
import 'package:angel_framework/angel_framework.dart';
@ -46,6 +47,9 @@ configureAfter(Angel app) async {
// Pass AngelHttpExceptions through handler as well
await app.configure(errors);
// Compress via GZIP
app.responseFinalizers.add(gzip());
}
configureServer(Angel app) async {