FirewallManager
view release on metacpan or search on metacpan
lib/FirewallManager.pm view on Meta::CPAN
use Mojo::Headers;
# This method will run once at server start
sub startup {
my $self = shift;
my $db_params = {
"dsn" => "DBI:MariaDB:database=eladmin",
"username" => "careline",
"password" => "Cisc0123",
#"options" => { mysql_enable_utf8 => 1 }
};
my $headers = Mojo::Headers->new;
$headers->access_control_allow_origin;
# Load configuration from hash returned by config file
my $config = $self->plugin('Config');
my $api_route = $self->plugin('Crud');
$self->plugin( 'DBI', $db_params );
$self->plugin( 'CORS' );
( run in 0.241 second using v1.01-cache-2.11-cpan-00829025b61 )