Created
December 9, 2019 16:01
-
-
Save jberger/b9c89d0b3bc29ac791ef335517d29784 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 Mojolicious::Lite -signatures; | |
#app->defaults({text => 'Hello World'}); | |
#get '/'; | |
#get '/' => { text => 'Hello World' }; | |
get '/' => sub ($c) { | |
$c->render(text => 'Hello World'); | |
}; | |
app->start; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment