Switch from open library API to Inventaire API

This commit is contained in:
2026-01-16 16:12:59 +01:00
parent 1bb841332c
commit a04aff6056
22 changed files with 338 additions and 108 deletions

View File

@@ -62,8 +62,8 @@ export function postBook(book) {
return genericPayloadCall('/book', book.value, 'POST')
}
export async function postImportBook(id) {
return genericPayloadCall('/importbook', {openlibraryid: id}, 'POST');
export async function postImportBook(id, language) {
return genericPayloadCall('/importbook', {inventaireid: id, lang: language}, 'POST');
}
export async function putReadBook(bookId) {