Skip to content

Instantly share code, notes, and snippets.

@Dirk94
Created March 14, 2021 15:38
Show Gist options
  • Select an option

  • Save Dirk94/99151e8bde18f038267d5e3975f83759 to your computer and use it in GitHub Desktop.

Select an option

Save Dirk94/99151e8bde18f038267d5e3975f83759 to your computer and use it in GitHub Desktop.
async mounted() {
// Use a relative path to call the API now since our request is proxied.
const response = await axios.get("/quote")
this.quote = response.data.quote;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment