Search existing books
This commit is contained in:
@@ -28,6 +28,10 @@ export function getMyBooks() {
|
||||
return useFetch(baseUrl + '/mybooks');
|
||||
}
|
||||
|
||||
export function getSearchBooks(searchterm) {
|
||||
return useFetch(baseUrl + '/search/' + searchterm);
|
||||
}
|
||||
|
||||
export function postBook(book) {
|
||||
return genericPostCall('/book', book.value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user