Adding listen shortcut.

This commit is contained in:
Sergiotarxz 2024-11-02 21:27:23 +01:00
parent 3385809e09
commit 1cd463434a

View File

@ -6,9 +6,15 @@ sub startup ($self) {
# Load configuration from config file
my $config = $self->plugin('NotYAMLConfig');
$self->config(
hypnotoad => {
proxy => 1,
listen => [ $self->config('listen') // 'http://localhost:3000' ]
}
);
# Configure the application
$self->secrets($config->{secrets});
$self->secrets( $config->{secrets} );
# Router
my $r = $self->routes;