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:
parent
2288b20f21
commit
0e2fd5217e
1 changed files with 2 additions and 3 deletions
|
@ -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($_);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue