$p{ActionClass} ||= 'REST';
+ unless ( exists $p{Chained} ) {
+ $p{Chained} = q{/};
+
+ unless ( exists $p{PathPart} ) {
+ ( my $part = $path ) =~ s{^/}{};
+ $p{PathPart} = [$part];
+ }
+ }
+
+ unless ( exists $p{Args} ) {
+ $p{Args} = [0];
+ }
+
( my $name = $path ) =~ s/(\W)/'X' . sprintf( '%x', ord($1) )/eg;
return $name, \%p, $sub;