Skip to content

Instantly share code, notes, and snippets.

@Grinnz Grinnz/output
Created Feb 20, 2018

Embed
What would you like to do?
> mojo get 'http://localhost:3000//fred/fish'
[Tue Feb 20 16:28:38 2018] [debug] GET "/fish"
[Tue Feb 20 16:28:38 2018] [debug] Routing to a callback
[Tue Feb 20 16:28:38 2018] [debug] 200 OK (0.000438s, 2283.105/s)
fred⏎
use Mojolicious::Lite;
get '/*whatever' => sub {
my $c = shift;
$c->render(text => $c->req->url->host);
};
app->start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.