Permalink
Browse files

Replace Mojolicious guts-evilness with normal API/attribute access

  • Loading branch information...
japhb committed Sep 5, 2012
1 parent 1f37c81 commit ba8b767bfbd7573f51603aee8c507ce287d81704
Showing with 2 additions and 3 deletions.
  1. +2 −3 app.pl
View
5 app.pl
@@ -2,8 +2,7 @@
use Mojolicious::Lite;
-my $app = $ENV{MOJO_APP};
-$app->{static}->root('html');
+app->static->root('html');
get '(*dir)/:file' => sub {
my $self = shift;
@@ -23,4 +22,4 @@
return $self->redirect_to('/index.html');
};
-$app->start;
+app->start;

0 comments on commit ba8b767

Please sign in to comment.