Jonathan Druart
37a16e69c7
And tidy them Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
26 lines
690 B
JavaScript
26 lines
690 B
JavaScript
/* keep tidy */
|
|
import HttpClient from "./http-client.js";
|
|
|
|
export class CoverImageAPIClient extends HttpClient {
|
|
constructor() {
|
|
super({
|
|
baseURL: "/cgi-bin/koha/svc/cover_images",
|
|
});
|
|
}
|
|
|
|
get cover_images() {
|
|
return {
|
|
delete: image_id =>
|
|
this.post({
|
|
endpoint: "",
|
|
body: "imagenumber=%s&op=%s".format(image_id, "cud-delete"),
|
|
headers: {
|
|
"Content-Type":
|
|
"application/x-www-form-urlencoded;charset=utf-8",
|
|
},
|
|
}),
|
|
};
|
|
}
|
|
}
|
|
|
|
export default CoverImageAPIClient;
|