my ( $self, $name, $namespace ) = @_;
return unless $name;
- $namespace = join("/", grep { length } split '/', $namespace || "" );
+ $namespace = join( "/", grep { length } split '/', $namespace || "" );
return $self->action_hash->{"$namespace/$name"};
}
sub get_action_by_path {
my ( $self, $path ) = @_;
+ $path = "/$path" unless $path =~ /\//;
$self->action_hash->{$path};
}
my ( $self, $c, $action, $namespace ) = @_;
return [] unless $action;
- $namespace = join("/", grep { length } split '/', $namespace || "" );
+ $namespace = join( "/", grep { length } split '/', $namespace || "" );
my @match = $self->get_containers($namespace);