Skip to content

Instantly share code, notes, and snippets.

/test.psgi Secret

Created February 19, 2016 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3331032143a5544b6d91 to your computer and use it in GitHub Desktop.
Save anonymous/3331032143a5544b6d91 to your computer and use it in GitHub Desktop.
use Mojolicious::Lite;
use Mojo::Server::PSGI;
use Plack::Builder;
get '/welcome' => sub {
my $c = shift;
$c->render(text => $c->req->url->to_abs);
};
builder {
my $server = Mojo::Server::PSGI->new;
$server->app(app);
$server->to_psgi_app;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment