ndswimming92 / noteworthy-fe-capstone

Notetaking app in react
1 stars 0 forks source link

View Single Note #13

Open ndswimming92 opened 7 months ago

ndswimming92 commented 7 months ago

User Story - what the user should see and experience

Acceptance Criteria - illustrates the scope of the individual ticket

Example -

NW3

Dependencies -

Dev Notes - dev work that needs to be completed for this ticket

const getSingleMember = (firebaseKey) => new Promise((resolve, reject) => {
  fetch(`${endpoint}/member/${firebaseKey}.json`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
  })
    .then((response) => response.json())
    .then((data) => resolve(data))
    .catch(reject);
});