Added WebGUI::Middleware::WGAccess for .wgaccess-aware static serving on dev servers

This commit is contained in:
Patrick Donelan 2010-04-13 19:33:35 -04:00
parent 82ce3331b7
commit b1ab8287ca
3 changed files with 72 additions and 92 deletions

View file

@ -16,6 +16,9 @@ builder {
config => $wg->config,
error_docs => { 500 => "$root/www/maintenance.html" };
# This one uses the Session object, so it comes after WebGUI::Middleware::Session
enable '+WebGUI::Middleware::WGAccess', config => $wg->config;
# Return the app
$wg;
};