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());