This commit is contained in:
regiostech 2016-04-29 20:33:27 -04:00
parent e9875f6f20
commit 53eadf92eb
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

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