function fetchPost(id) {
  const request = axios.get(`${ROOT_URL}/posts/${id}${API_KEY}`);

  return {
    type: FETCH_POST,
    payload: request
  }
}
/*
  fetchPost(id): make get AJAX request to /posts/:id
  - return a payload with the post data object
*/
make get AJAX request to /posts/:id
return a payload with the post data object
make get AJAX request to / posts / : id return a payload with the post data object
function fetchPost(id) {
  const request = axios.get(`${ROOT_URL}/posts/${id}${API_KEY}`);
  return {
    type: FETCH_POST,
    payload: request
  }
}
function fetchPost ( id ) { const request = axios . get ( ` ${ ROOT_URL } ${ id } ${ API_KEY } ` ) ; return { type : FETCH_POST , payload : request } }
fetchPost(id): make get AJAX request to /posts/:id
 return a payload with the post data object
fetchPost ( id ) : make get AJAX request to / posts / : id return a payload with the post data object