Skip to content

Commit

Permalink
Don't use q{} in Path component of Catalyst routes. haarg++
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 4, 2016
1 parent 2ff9758 commit e4c856e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Server/Controller.pm
Expand Up @@ -75,7 +75,7 @@ sub mapping : Path('_mapping') {
);
}

sub get : Path(q{}) : Args(1) {
sub get : Path('') : Args(1) {
my ( $self, $c, $id ) = @_;
my $file = $self->model($c)->raw->get($id);
if ( !defined $file ) {
Expand All @@ -86,7 +86,7 @@ sub get : Path(q{}) : Args(1) {
['The requested field(s) could not be found'] );
}

sub all : Path(q{}) : Args(0) : ActionClass('Deserialize') {
sub all : Path('') : Args(0) : ActionClass('Deserialize') {
my ( $self, $c ) = @_;
$c->req->params->{q} ||= '*' unless ( $c->req->data );
$c->forward('search');
Expand Down

0 comments on commit e4c856e

Please sign in to comment.