frontend/api.js
// + Attempts to export a list of entries from an open address book to a file
+ Attempts to export a list of entries from an open address book to a file
+ Attempts to export a list of entries from an open address book to a file
async function exportBook (book_id, filename, entry_ids) {
  const response = await fetch('http://localhost:3600/export', {
    method: 'POST',
    headers: {
      Accept: 'application/json',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ book_id: book_id, filename: filename, entry_ids: entry_ids })
  })
  return await response.json()
}
async function exportBook ( book_id , filename , entry_ids ) { const response = await fetch ( 'http://localhost:3600/export' , { method : 'POST' , headers : { Accept : 'application/json' , 'Content-Type' : 'application/json' } , body : JSON . stringify ( { book_id : book_id , filename : filename , entry_ids : entry_ids } ) } ) return await response . json ( ) }
+ Attempts to export a list of entries from an open address book to a file
+ Attempts to export a list of entries from an open address book to a file