Jonathan Druart
cf348a1a9b
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 lines
483 B
JavaScript
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;
|