As a user, I should be able to delete my news articles
Acceptance Criteria
DELETE:
GIVEN a user wants to remove a previously stored news article
WHEN the user performs a gesture on the delete affordance
THEN the article should be deleted
Development
inside the newsData.js include - deleteStory = storyId => axios.delete
inside news.js, addEvents() include:
add eventListeners to deleteStory buttons to call newsData.deleteStory
User Story
As a user, I should be able to delete my news articles
Acceptance Criteria
DELETE: GIVEN a user wants to remove a previously stored news article WHEN the user performs a gesture on the delete affordance THEN the article should be deleted
Development
newsData.js
include -deleteStory = storyId => axios.delete
news.js
,addEvents()
include:deleteStory
buttons to callnewsData.deleteStory