await
This commit is contained in:
parent
e9875f6f20
commit
53eadf92eb
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import 'package:angel_mustache/angel_mustache.dart';
|
||||||
import 'routes.dart';
|
import 'routes.dart';
|
||||||
|
|
||||||
configureServer(Angel app) async {
|
configureServer(Angel app) async {
|
||||||
await app.configure(loadConfigurationFile());
|
app.configure(loadConfigurationFile());
|
||||||
await app.configure(mustache(new Directory('views')));
|
await app.configure(mustache(new Directory('views')));
|
||||||
await app.configure(configureRoutes);
|
await app.configure(configureRoutes);
|
||||||
}
|
}
|
|
@ -5,7 +5,7 @@ import 'package:angel_framework/angel_framework.dart';
|
||||||
import 'package:angel_static/angel_static.dart';
|
import 'package:angel_static/angel_static.dart';
|
||||||
|
|
||||||
/// Put your app routes here!
|
/// Put your app routes here!
|
||||||
configureRoutes(Angel app) {
|
configureRoutes(Angel app) async {
|
||||||
app.get('/', (req, ResponseContext res) => res.render('hello'));
|
app.get('/', (req, ResponseContext res) => res.render('hello'));
|
||||||
app.all('*', serveStatic());
|
app.all('*', serveStatic());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue