copy gitweblite soruce code
|
1 |
package Mojo::HelloWorld; |
2 |
use Mojolicious::Lite; |
|
3 | ||
4 |
app->log->level('error')->path(undef); |
|
5 | ||
6 |
any '/*whatever' => {whatever => '', text => 'Your Mojo is working!'}; |
|
7 | ||
8 |
1; |
|
9 | ||
update Mojolicious to 4.57
|
10 |
=encoding utf8 |
11 | ||
copy gitweblite soruce code
|
12 |
=head1 NAME |
13 | ||
14 |
Mojo::HelloWorld - Hello World! |
|
15 | ||
16 |
=head1 SYNOPSIS |
|
17 | ||
18 |
use Mojo::HelloWorld; |
|
19 | ||
upgraded Mojolicious to v3.7...
|
20 |
my $hello = Mojo::HelloWorld->new; |
21 |
$hello->start; |
|
22 | ||
copy gitweblite soruce code
|
23 |
=head1 DESCRIPTION |
24 | ||
25 |
L<Mojo::HelloWorld> is the default L<Mojolicious> application, used mostly |
|
26 |
for testing. |
|
27 | ||
28 |
=head1 SEE ALSO |
|
29 | ||
30 |
L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicio.us>. |
|
31 | ||
32 |
=cut |