Add route to get a particular book

This commit is contained in:
2025-10-24 20:06:41 +02:00
parent a21add72ce
commit 873c3c89fa
11 changed files with 188 additions and 34 deletions

View File

@@ -32,6 +32,10 @@ export function getSearchBooks(searchterm) {
return useFetch(baseUrl + '/search/' + searchterm);
}
export function getBook(id) {
return useFetch(baseUrl + '/book/' + id);
}
export function postBook(book) {
return genericPostCall('/book', book.value)
}