get '/cities' => sub {
my $c = shift;
$c->validation->output($c->req->params->to_hash);
- $c->stash_embed;
+ $c->stash_embed( { spec => { parameters => [ { name => 'x-koha-embed', items => { enum => ['+strings'] } } ] } } );
my $cities = $c->objects->search(Koha::Cities->new);
$c->render( status => 200, json => $cities );
};
get '/cities/:city_id' => sub {
my $c = shift;
my $id = $c->stash("city_id");
- $c->stash_embed;
+ $c->stash_embed( { spec => { parameters => [ { name => 'x-koha-embed', items => { enum => ['+strings'] } } ] } } );
my $city = $c->objects->find(Koha::Cities->new, $id);
$c->render( status => 200, json => $city );
};