This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use Mojolicious::Lite; | |
| get '/' => 'index'; | |
| get '/ok' => 'index_ok'; | |
| use Test::More; | |
| plan tests => 6; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use lib '../mojo/lib'; | |
| BEGIN { $ENV{MOJO_TMPDIR} = 'tmp/upload' }; | |
| use Mojolicious::Lite; | |
| use Data::Dumper; | |
| get '/' => 'form'; | |
| post '/' => sub { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| use strict; | |
| use lib qw(lib ../mojo/lib); | |
| $ENV{MOJO_APP} ||= 'App'; | |
| use Mojolicious::Commands; Mojolicious::Commands->start; | |
| package App; | |
| use strict; |
NewerOlder