|
Lines 36-43
sub list {
Link Here
|
| 36 |
my $c = shift->openapi->valid_input or return; |
36 |
my $c = shift->openapi->valid_input or return; |
| 37 |
|
37 |
|
| 38 |
return try { |
38 |
return try { |
| 39 |
my $authorised_value_categories_set = Koha::AuthorisedValueCategories->new; |
39 |
my $authorised_value_categories_set = |
| 40 |
my $authorised_value_categories = $c->objects->search( $authorised_value_categories_set ); |
40 |
Koha::AuthorisedValueCategories->search( {}, { order_by => 'category_name' } ); |
|
|
41 |
my $authorised_value_categories = $c->objects->search($authorised_value_categories_set); |
| 41 |
return $c->render( status => 200, openapi => $authorised_value_categories ); |
42 |
return $c->render( status => 200, openapi => $authorised_value_categories ); |
| 42 |
} |
43 |
} |
| 43 |
catch { |
44 |
catch { |
| 44 |
- |
|
|