- item one
- item teo
- fetching info
fetch(newURL)
.then(response => response.json())
.then(json => {
return json
}).catch(e => console.log("Invalid Pokemon"))
}
- create new post
- what does this post contain
{
id: 1,
title: 'foo',
body: 'bar',
userId: 1,
}
- when to use post over get request for sending information.
node index.js posts --filelocation of posts to upload
node index.js posts