Adding listen parameter.

This commit is contained in:
sergiotarxz 2024-05-06 19:44:26 +02:00
parent 506324ad5e
commit 8e5437fe40

View File

@ -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');