frontend/api.js
// + Updates an entry in an address book
+ Updates an entry in an address book
+ Updates an entry in an address book
async function editEntry (entry) {
  const response = await fetch('http://localhost:3600/edit_entry', {
    method: 'POST',
    headers: {
      Accept: 'application/json',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ entry_data: entry })
  })
  return await response.json()
}
async function editEntry ( entry ) { const response = await fetch ( 'http://localhost:3600/edit_entry' , { method : 'POST' , headers : { Accept : 'application/json' , 'Content-Type' : 'application/json' } , body : JSON . stringify ( { entry_data : entry } ) } ) return await response . json ( ) }
+ Updates an entry in an address book
+ Updates an entry in an address book