WebGUI.pm as subclass of Plack::Component

This commit is contained in:
Graham Knop 2010-04-16 19:30:39 -05:00
parent 5122518652
commit ff2a36026a
2 changed files with 70 additions and 88 deletions

View file

@ -45,10 +45,10 @@ builder {
# This one uses the Session object, so it comes after WebGUI::Middleware::Session
mount $config->get('uploadsURL') => builder {
enable '+WebGUI::Middleware::WGAccess';
Plack::App::File->new(root => $config->get('uploadsPath'))->to_app;
Plack::App::File->new(root => $config->get('uploadsPath'));
};
# Return the app
mount '/' => $wg->to_app;
mount '/' => $wg;
};