FederationOfTech / Coalesce

An open source volunteer management platform from the Federation of Humanitarian Technologists
GNU Affero General Public License v3.0
13 stars 13 forks source link

Connect Opportunity Details Page to REST API #58

Closed stefanha closed 3 years ago

stefanha commented 3 years ago

These patches fetch Opportunity objects from the REST API so that hardcoded data is no longer needed in OpportunityDetailsPage.vue.

This required sending an HTTP GET request with axios. I added the JWT access token to the request headers although the API server currently does not require it. In the future we can expect the API server to customize responses based on the logged in user or to prevent access entirely, so let's be sure to include the token.

I'm a Vue.js and Quasar newbie, so please let me know if there is a nicer way of doing this!