WebGUI.pm as subclass of Plack::Component
This commit is contained in:
parent
5122518652
commit
ff2a36026a
2 changed files with 70 additions and 88 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue