make app portable through uri_base

This commit is contained in:
Oliver Gorwits
2012-01-15 23:09:43 +00:00
parent e2e032de18
commit c555fc9330
18 changed files with 59 additions and 54 deletions

View File

@@ -11,6 +11,11 @@ use Netdisco::Web::AuthN;
use Netdisco::Web::Search;
use Netdisco::Web::Device;
hook 'before_template' => sub {
my $tokens = shift;
$tokens->{uri_base} = request->base->path;
};
get '/' => sub {
template 'index';
};