Backend route and database query for all goals from the logged in user. Saves in context and populates the journal page with the returned goals. This means that @SalwaMugh, you should be able to populate the dashboard goals with items from context.state.goalData 🙂
Bugs/todo later:
still currently depends on a hard coded user id, stored in the context
eventually we can also separate the api call into a separate file that can be called on both the journal page and the dashboard page
Backend route and database query for all goals from the logged in user. Saves in context and populates the journal page with the returned goals. This means that @SalwaMugh, you should be able to populate the dashboard goals with items from context.state.goalData 🙂
Bugs/todo later: