text: import axios from "axios";
  
  export default {
    // Get books matching user input
    getBooks: function(query) {
      return axios.get(`https://www.googleapis.com/books/v1/volumes?q=${query}`);
    },
    // Get all saved books from the database
    getSavedBooks: function() {
      return axios.get("/api/books");
    },
    // Deletes the book with the given id
    deleteBook: function(id) {
      return axios.delete("/api/books/" + id);
    },
    // Saves a book to the database
    saveBook: function(bookData) {
      return axios.post("/api/books", bookData);
    }
  };
  