Koha/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/item-api-client.js
Jonathan Druart cf348a1a9b
Bug 30708: Fix conflict with 34055 and 34219
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-18 15:42:02 -03:00

23 lines
483 B
JavaScript

import HttpClient from "./http-client";
export class ItemAPIClient extends HttpClient {
constructor() {
super({
baseURL: "/api/v1/",
});
}
get items() {
return {
getAll: (query, params, headers) =>
this.getAll({
endpoint: "items",
query,
params,
headers,
}),
};
}
}
export default ItemAPIClient;