Koha/koha-tmpl/intranet-tmpl/prog/js/vue/fetch
Jonathan Druart 545e568b9f
Bug 32939: Uniformize api calls
We want to make the call easier and without less errors possible.
Here, no need to async keyword, try-catch, etc.
Only call the method and use the common then with the 2 success and
error Promise arguments.

We will certainly want to add later a parameter to prevent the display
of the error in fetchJSON, in case the failure does not require a message
for the end user.

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-02-27 11:13:10 -03:00
..
api-client.js Bug 32939: Have a generic APIClient object 2023-02-27 11:13:09 -03:00
erm-api-client.js Bug 32939: Set the default header at lower level 2023-02-27 11:13:09 -03:00
erm.js
http-client.js Bug 32939: Uniformize api calls 2023-02-27 11:13:10 -03:00