Echo form
use Mojolicious::Lite;
get '/' => { text => 'Hello World' };
get '/echo' => { text => q{
<form method="POST">
<input name="q">
<input type="submit" value="Echo">
</form>
}};
app->secrets(['My very secret passphrase.']);
app->start;
- Visit http://127.0.0.1:3000/echo
- Fill the form and submit