2 use Mojo::Base 'Mojolicious';
4 # This method will run once at server start
8 # Load configuration from hash returned by "my_app.conf"
9 my $config = $self->plugin('Config');
11 # Documentation browser under "/perldoc"
12 $self->plugin('PODRenderer') if $config->{perldoc};
15 my $r = $self->routes;
17 # Normal route to controller
18 $r->get('/')->to('example#welcome');