projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Display / as the path spec for chained actions with empty path parts.
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
DispatchType
/
Chained.pm
diff --git
a/lib/Catalyst/DispatchType/Chained.pm
b/lib/Catalyst/DispatchType/Chained.pm
index
585bf3f
..
b0e3f53
100644
(file)
--- a/
lib/Catalyst/DispatchType/Chained.pm
+++ b/
lib/Catalyst/DispatchType/Chained.pm
@@
-127,7
+127,7
@@
sub list {
push(@rows, [ '', $name ]);
}
push(@rows, [ '', (@rows ? "=> " : '')."/${endpoint}" ]);
- $rows[0][0] = join('/', '', @parts);
+ $rows[0][0] = join('/', '', @parts) || '/';
$paths->row(@$_) for @rows;
}