Pcore::App
my $app = Test::App->new( { # app_cfg => { server => { # passed directly to the Pcore::HTTP::Server constructor listen => '*:80', # 'unix:/var/run/test.sock' keepalive_timeout => 180, }, router => { # passed directly to the Pcore::App::Router '*' => undef, 'host1.com' => 'Test::App::App1', 'host2.com' => 'Test::App::App2', }, api => { connect => "sqlite:$ENV->{DATA_DIR}/auth.sqlite", rpc => { workers => undef, # Maybe[Int] argon => { argon2_time => 3, argon2_memory => '64M', argon2_parallelism => 1, }, }, } }, devel => $ENV->{cli}->{opt}->{devel}, } ); $app->run( sub ($res) { return; } );
allows to call API method without authentication.
allows any authenticated user.
array of roles names, that are allowed to run this method.
To install Pcore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore
CPAN shell
perl -MCPAN -e shell install Pcore
For more information on module installation, please visit the detailed CPAN module installation guide.