frontend/api.js
// + Attempts to delete an entry from an address book.
+ Attempts to delete an entry from an address book.
+ Attempts to delete an entry from an address book .
async function deleteEntry (book_id, entry_id) {
  const response = await fetch('http://localhost:3600/delete_entry', {
    method: 'POST',
    headers: {
      Accept: 'application/json',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ book_id: book_id, entry_id: entry_id })
  })
  return await response.json()
}
async function deleteEntry ( book_id , entry_id ) { const response = await fetch ( 'http://localhost:3600/delete_entry' , { method : 'POST' , headers : { Accept : 'application/json' , 'Content-Type' : 'application/json' } , body : JSON . stringify ( { book_id : book_id , entry_id : entry_id } ) } ) return await response . json ( ) }
+ Attempts to delete an entry from an address book.
+ Attempts to delete an entry from an address book .