LEGAL
-------------------------------------------------------------------
WebGUI is Copyright 2001-2009 Plain Black Corporation.
-------------------------------------------------------------------
Please
read
the legal notices (docs/legal.txt) and the license
(docs/license.txt) that came
with
this distribution
before
using
this software.
-------------------------------------------------------------------
-------------------------------------------------------------------
NAME
WebGUI::URL::PSGI
VERSION
version 0.2
DESCRIPTION
Mount PSGI apps inside of WebGUI
SYNOPSIS
"urlHandlers"
: [
{
"^/extras"
:
"WebGUI::URL::PassThru"
},
#...
{
".*"
:
"WebGUI::URL::PSGI"
},
{
".*"
:
"WebGUI::URL::Content"
}
],
"psgi"
: {
'/foo'
:
'/path/to.psgi'
,
}
CONFIGURATION
Put this url handler somewhere before Content in your urlHandlers array and include a psgi section in your config file. The psgi section should contain a map of url prefixes to psgi file paths. PSGI applications are loaded via Plack::Util::load_psgi, and behave exactly as the would under plackup.
ENVIRONMENT
The PSGI environment will contain a wgSession key containing a valid WebGUI session.