Bug 36482: Make embedding work for GET /libraries/:library_id

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 8cd64b5dd6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Tomás Cohen Arazi 2024-04-01 18:08:46 -03:00 committed by Fridolin Somers
parent 2288b20f21
commit 0e2fd5217e

View file

@ -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($_);
};
}