Added cpanfile
This commit is contained in:
parent
7d9e99b7ae
commit
d20295741c
4
cpanfile
Normal file
4
cpanfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
requires 'Test::More';
|
||||
requires 'Mojo::File';
|
||||
requires 'Test::Mojo';
|
||||
requires 'Mojolicious::Lite';
|
|
@ -14,7 +14,7 @@ get '/' => sub ($c) {
|
|||
} => 'index';
|
||||
|
||||
any '/test' => sub ($c) {
|
||||
my $method = $c->req->method;
|
||||
my $method = $c->req->method();
|
||||
my $string = $tm->test_model($c->param('string'));
|
||||
|
||||
$c->render(method => $method, string => $string);
|
||||
|
|
Loading…
Reference in a new issue