Added WebGUI::Middleware::WGAccess for .wgaccess-aware static serving on dev servers
This commit is contained in:
parent
82ce3331b7
commit
b1ab8287ca
3 changed files with 72 additions and 92 deletions
3
app.psgi
3
app.psgi
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue