From d44a575c0f22bcb2e9df9787e5d457db851f4f0e Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 1 Apr 2024 18:08:46 -0300 Subject: [PATCH] Bug 36482: Make embedding work for GET /libraries/:library_id Signed-off-by: Tomas Cohen Arazi --- Koha/REST/V1/Libraries.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Koha/REST/V1/Libraries.pm b/Koha/REST/V1/Libraries.pm index 33c50d3559d..760648ccb18 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($_); }; } -- 2.44.0