diff --git a/Koha/REST/V1/Libraries.pm b/Koha/REST/V1/Libraries.pm index 492a3495c3..db0cb3011d 100644 --- a/Koha/REST/V1/Libraries.pm +++ b/Koha/REST/V1/Libraries.pm @@ -73,10 +73,9 @@ sub get { return $c->render( status => 200, - openapi => $library->to_api + openapi => $c->objects->to_api($library), ); - } - catch { + } catch { $c->unhandled_exception($_); }; }