From 367ea1eb369252c3133c162ab3b615a61dcc192e Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 11 Jul 2018 09:44:56 -0400 Subject: [PATCH] Update routes.dart --- lib/src/routes/routes.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/routes/routes.dart b/lib/src/routes/routes.dart index dba8965..3eb9132 100644 --- a/lib/src/routes/routes.dart +++ b/lib/src/routes/routes.dart @@ -25,7 +25,7 @@ AngelConfigurer configureServer(FileSystem fileSystem) { '/', (RequestContext req, ResponseContext res) => res.render('hello')); // Mount static server at web in development. - // This variant of `VirtualDirectory` also sends `Cache-Control` headers. + // The `CachingVirtualDirectory` variant of `VirtualDirectory` also sends `Cache-Control` headers. // // In production, however, prefer serving static files through NGINX or a // similar reverse proxy. @@ -33,7 +33,7 @@ AngelConfigurer configureServer(FileSystem fileSystem) { // Read the following two sources for documentation: // * https://medium.com/the-angel-framework/serving-static-files-with-the-angel-framework-2ddc7a2b84ae // * https://github.com/angel-dart/static - var vDir = new CachingVirtualDirectory( + var vDir = new VirtualDirectory( app, fileSystem, source: fileSystem.directory('web'),