Skip to content

Instantly share code, notes, and snippets.

@Kelin2025
Created March 17, 2018 18:42
Show Gist options
  • Save Kelin2025/5288599d5efd13dbed06a75173b9f5ce to your computer and use it in GitHub Desktop.
Save Kelin2025/5288599d5efd13dbed06a75173b9f5ce to your computer and use it in GitHub Desktop.
Apicase request
doRequest({ url: '/api/posts' })
.on('done', res => console.log(res))
.on('fail', res => console.warn(res))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment