From 53eadf92eb4370fdf170782d2f49df1a925cf76c Mon Sep 17 00:00:00 2001 From: regiostech Date: Fri, 29 Apr 2016 20:33:27 -0400 Subject: [PATCH] await --- lib/src/config/config.dart | 2 +- lib/src/config/routes.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/config/config.dart b/lib/src/config/config.dart index a8e52a3..12214da 100644 --- a/lib/src/config/config.dart +++ b/lib/src/config/config.dart @@ -8,7 +8,7 @@ import 'package:angel_mustache/angel_mustache.dart'; import 'routes.dart'; configureServer(Angel app) async { - await app.configure(loadConfigurationFile()); + app.configure(loadConfigurationFile()); await app.configure(mustache(new Directory('views'))); await app.configure(configureRoutes); } \ No newline at end of file diff --git a/lib/src/config/routes.dart b/lib/src/config/routes.dart index 723a3d8..ef46ce3 100644 --- a/lib/src/config/routes.dart +++ b/lib/src/config/routes.dart @@ -5,7 +5,7 @@ import 'package:angel_framework/angel_framework.dart'; import 'package:angel_static/angel_static.dart'; /// Put your app routes here! -configureRoutes(Angel app) { +configureRoutes(Angel app) async { app.get('/', (req, ResponseContext res) => res.render('hello')); app.all('*', serveStatic());