Closed stephencweiss closed 5 years ago
Need to refactor the /myBudget/:budgetId
app.get('/myBudget/:budgetId', (request, response) => {
db.BudgetItem.findAll({ where: { budget_id: request.params.budgetId } })
.then(message => response.status(200).send(message))
.catch(err => response.status(404).send(errorMessage, err))
})
/myBudget/:budgetId
app.get('/myBudget/data/:budgetId')
that mirrors the original.All of these components have been created
Related to #2
W,W,W
When a navigating to the endpoint
/myBudget/:budgetName
, we will render the React app.DoD
When navigating to
/myBudget/testBudget
, we will see the appropriate fields on the pagetestUser
testBudget