tweak example

This commit is contained in:
Graham Ollis
2013-08-08 09:05:58 -04:00
parent e541ac92b7
commit 90e2562862
3 changed files with 4 additions and 16 deletions
-6
View File
@@ -1,16 +1,10 @@
package MyApp;
use Mojo::Base 'Mojolicious';
# This method will run once at server start
sub startup {
my $self = shift;
$self->plugin('tt_renderer');
# Router
my $r = $self->routes;
# Normal route to controller
$r->get('/')->to('example#welcome');
}