stephencweiss / matilda

See your time in a whole new way. Small, lightweight, magical.
MIT License
1 stars 0 forks source link

Render Budget Page #7

Closed stephencweiss closed 5 years ago

stephencweiss commented 5 years ago

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 page

stephencweiss commented 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))
})
stephencweiss commented 5 years ago

All of these components have been created