Created
June 22, 2011 03:30
-
-
Save kraih/1039455 to your computer and use it in GitHub Desktop.
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 Mojo::Base 'Mojolicious'; | |
sub handler { | |
my $tx = pop; | |
my $res = $tx->res; | |
$res->code(200); | |
$res->body('Hello World!'); | |
$tx->resume; | |
}; | |
__PACKAGE__->start; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment