PaulPatterson48 / INDIVIDUAL-ASSIGNMENT-Team-Roster

0 stars 0 forks source link

Add a Player to the NavBar #8

Open PaulPatterson48 opened 12 months ago

PaulPatterson48 commented 12 months ago

User Story

GIVEN: Authenticated User should navigate to '/new' and see an h1 tag that says 'Add a Member'

Acceptance Criteria

Add a member on the navbar

Dependecies

api\playerData.js CREATE Promise is a 'POST' navbar.js

Dev Notes

const createBook = (payload) => new Promise((resolve, reject) => { fetch(${endpoint}/books.json, { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(payload), }) .then((response) => response.json()) .then((data) => resolve(data)) .catch(reject); });