frontend/api.js
// + Attempts to close an open address book, forcing if necessary. Returns status code
+ Attempts to close an open address book, forcing if necessary. Returns status code
+ Attempts to close an open address book forcing if necessary . Returns status code
async function closeBook (id, force) {
  const response = await fetch('http://localhost:3600/close', {
    method: 'POST',
    headers: {
      Accept: 'application/json',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ book_id: id, force: force })
  })
  return await response.json()
}
async function closeBook ( id , force ) { const response = await fetch ( 'http://localhost:3600/close' , { method : 'POST' , headers : { Accept : 'application/json' , 'Content-Type' : 'application/json' } , body : JSON . stringify ( { book_id : id , force : force } ) } ) return await response . json ( ) }
+ Attempts to close an open address book, forcing if necessary.
+ Attempts to close an open address book forcing if necessary .