Skip to content

Commit

Permalink
removed WebSocket and condition support from routes command again
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 14, 2014
1 parent d50aa8f commit e2fe11a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Changes
@@ -1,8 +1,6 @@

4.81 2014-02-14
- Added direct array access for child nodes to Mojo::DOM.
- Improved routes command to show which routes are WebSockets and/or have
conditions.

4.80 2014-02-13
- Merged Mojo::DOM::Node into Mojo::DOM.
Expand Down
2 changes: 0 additions & 2 deletions lib/Mojolicious/Command/routes.pm
Expand Up @@ -25,12 +25,10 @@ sub _walk {
my $prefix = '';
if (my $i = $depth * 2) { $prefix .= ' ' x $i . '+' }
push @$rows, my $row = [$prefix . ($route->pattern->pattern || '/')];
$row->[-1] .= ' (~)' if $verbose && @{$route->over || []};

# Methods
my $via = $route->via;
push @$row, !$via ? '*' : uc join ',', @$via;
$row->[-1] .= ' (WS)' if $verbose && $route->is_websocket;

# Name
my $name = $route->name;
Expand Down

0 comments on commit e2fe11a

Please sign in to comment.