Bug 29616: (QA follow-up) Use /public endpoints on OPAC

This patch updates the new modal to use the /public version of the
libraries endpoint for fetching library data. This ensure the feature
works as expected prior to patron login.
This commit is contained in:
Martin Renvoize 2022-05-05 13:11:32 +01:00
parent 79f57cf303
commit 10138c1a10
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -1934,7 +1934,7 @@
var branchcode = $(this).data("branchcode");
var url = $(this).attr("href");
$.ajax({
url: "/api/v1/libraries/" + branchcode,
url: "/api/v1/public/libraries/" + branchcode,
type: 'GET',
dataType: 'json',
success: function(result) {