webgui/app.psgi
2010-04-09 01:12:30 -04:00

18 lines
409 B
Perl

use strict;
use Plack::Builder;
use lib '/data/WebGUI/lib';
use WebGUI;
my $wg = WebGUI->new( root => '/data/WebGUI', site => 'dev.localhost.localdomain.conf' );
builder {
# Open/close the WebGUI::Session at the outer-most onion layer
enable '+WebGUI::Middleware::Session', config => $wg->config;
# Any additional WebGUI Middleware goes here
# ..
# Return the app
$wg;
};