Skip to content

Commit

Permalink
index sounds better than root
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 17, 2014
1 parent 3b5c433 commit d510283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -68,7 +68,7 @@ app->start;
use Mojolicious::Lite;

# Route associating "/" with template in DATA section
get '/' => 'root';
get '/' => 'index';

# WebSocket service scraping information from remote site
websocket '/title' => sub {
Expand All @@ -83,7 +83,7 @@ websocket '/title' => sub {
app->start;
__DATA__
@@ root.html.ep
@@ index.html.ep
% my $websocket = url_for 'title';
<script>
var ws = new WebSocket('<%= $websocket->to_abs %>');
Expand Down

0 comments on commit d510283

Please sign in to comment.