Adding listen parameter.
This commit is contained in:
parent
506324ad5e
commit
8e5437fe40
@ -40,6 +40,8 @@ sub startup ($self) {
|
|||||||
|
|
||||||
# Router
|
# Router
|
||||||
my $r = $self->routes;
|
my $r = $self->routes;
|
||||||
|
$self->config(
|
||||||
|
hypnotoad => { proxy => 1, listen => [$self->config('listen') // 'http://localhost:3000'] } );
|
||||||
|
|
||||||
# Normal route to controller
|
# Normal route to controller
|
||||||
$r->get('/')->to('Page#index');
|
$r->get('/')->to('Page#index');
|
||||||
|
Loading…
Reference in New Issue
Block a user