From 47b28d524da5df021daa7922d04a69685b04dbbe Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 21 Dec 2016 18:33:31 -0500 Subject: [PATCH] Update routes.dart --- lib/src/routes/routes.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/routes/routes.dart b/lib/src/routes/routes.dart index 876c027..0b42018 100644 --- a/lib/src/routes/routes.dart +++ b/lib/src/routes/routes.dart @@ -11,11 +11,13 @@ configureBefore(Angel app) async { /// Put your app routes here! configureRoutes(Angel app) async { app.get('/', (req, ResponseContext res) => res.render('hello')); - await app.configure(new PubServeLayer()); - await app.configure(new VirtualDirectory()); } 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. var errors = new ErrorHandler(handlers: { 404: (req, res) async =>