make app portable through uri_base
This commit is contained in:
@@ -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';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user