Skip to content

Instantly share code, notes, and snippets.

@sm-a
Last active May 6, 2019 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sm-a/e1ef04296645998f2321a7b2e8671734 to your computer and use it in GitHub Desktop.
Save sm-a/e1ef04296645998f2321a7b2e8671734 to your computer and use it in GitHub Desktop.
try {
axios.get("here-my-url")
.then(data => res.status(200).send(data))
.catch(err => res.send(err));
} catch(err) {
console.error("ERROR", err);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment