package Mojo::HelloWorld; use Mojo::Base 'Mojolicious'; sub startup { my $self = shift; $self->preload_namespaces([])->log->level('error')->path(undef); $self->routes->any('/*whatever' => {whatever => '', text => 'Your Mojo is working!'}); } 1; =encoding utf8 =head1 NAME Mojo::HelloWorld - Hello World! =head1 SYNOPSIS use Mojo::HelloWorld; my $hello = Mojo::HelloWorld->new; $hello->start; =head1 DESCRIPTION L is the default L application, used mostly for testing. =head1 ATTRIBUTES L inherits all attributes from L. =head1 METHODS L inherits all methods from L and implements the following new ones. =head2 startup $hello->startup; Creates a catch-all route that renders a text message. =head1 SEE ALSO L, L, L. =cut