Skip to content

Instantly share code, notes, and snippets.

@gisderdube
Created December 25, 2018 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gisderdube/74ff5d3cf687d6eeabfccee5d446c022 to your computer and use it in GitHub Desktop.
Save gisderdube/74ff5d3cf687d6eeabfccee5d446c022 to your computer and use it in GitHub Desktop.
async function getData() {
const result = await axios.get('https://dube.io/service/ping')
const data = result.data
console.log('data', data)
return data
}
getData()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment