From 8cd64b5dd689175a68a8a4b7f6f843cad2d271f0 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 Signed-off-by: David Nind Signed-off-by: Pedro Amorim Signed-off-by: Katrin Fischer --- 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 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($_); }; } -- 2.39.5