Update routes.dart

This commit is contained in:
Tobe O 2016-12-21 18:33:31 -05:00 committed by GitHub
parent 9822c03d52
commit 47b28d524d

View file

@ -11,11 +11,13 @@ configureBefore(Angel app) async {
/// Put your app routes here! /// Put your app routes here!
configureRoutes(Angel app) async { configureRoutes(Angel app) async {
app.get('/', (req, ResponseContext res) => res.render('hello')); app.get('/', (req, ResponseContext res) => res.render('hello'));
await app.configure(new PubServeLayer());
await app.configure(new VirtualDirectory());
} }
configureAfter(Angel app) async { configureAfter(Angel app) async {
// Static server, and pub serve while in development
await app.configure(new PubServeLayer());
await app.configure(new VirtualDirectory());
// Set our application up to handle different errors. // Set our application up to handle different errors.
var errors = new ErrorHandler(handlers: { var errors = new ErrorHandler(handlers: {
404: (req, res) async => 404: (req, res) async =>