Added cpanfile

This commit is contained in:
swag 2021-12-04 13:28:07 -05:00
parent 7d9e99b7ae
commit d20295741c
2 changed files with 5 additions and 1 deletions

4
cpanfile Normal file
View File

@ -0,0 +1,4 @@
requires 'Test::More';
requires 'Mojo::File';
requires 'Test::Mojo';
requires 'Mojolicious::Lite';

View File

@ -14,7 +14,7 @@ get '/' => sub ($c) {
} => 'index'; } => 'index';
any '/test' => sub ($c) { any '/test' => sub ($c) {
my $method = $c->req->method; my $method = $c->req->method();
my $string = $tm->test_model($c->param('string')); my $string = $tm->test_model($c->param('string'));
$c->render(method => $method, string => $string); $c->render(method => $method, string => $string);