Created
December 19, 2009 02:43
-
-
Save rsrchboy/259914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# | |
# Chris Weyl <cweyl@alumni.drew.edu> | |
use strict; | |
use warnings; | |
use lib '/usr/share/bugzilla'; | |
use Plack::App::CGIBin; | |
use Plack::Builder; | |
use Readonly; | |
Readonly my $BZ => '/usr/share/bugzilla'; | |
my $app = Plack::App::CGIBin->new(root => $BZ)->to_app; | |
builder { | |
enable "Plack::Middleware::Static", | |
path => qr{^/skins/}, root => $BZ; | |
enable "Plack::Middleware::Static", | |
path => qr{^/js/}, root => $BZ; | |
$app; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment