use Mojo::Base 'Mojolicious::Controller';
-use Koha::AuthorisedValues;
use Koha::AuthorisedValueCategories;
use Try::Tiny;
=head2 Methods
-=head3 list
+=head3 list_av_from_category
+
+This routine returns the authorised values for a given category
=cut
}
return try {
- my $av_set = Koha::AuthorisedValues->search( { category => $category_name } )->search_with_library_limits;
+ my $av_set = $category->authorised_values->search_with_library_limits;
my $avs = $c->objects->search($av_set);
return $c->render( status => 200, openapi => $avs );
} catch {