Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replace Mojolicious guts-evilness with normal API/attribute access

  • Loading branch information...
commit ba8b767bfbd7573f51603aee8c507ce287d81704 1 parent 1f37c81
@japhb japhb authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.