Created
March 17, 2018 18:49
-
-
Save Kelin2025/cc2ec13b64fae004f889f16ee22eec23 to your computer and use it in GitHub Desktop.
Do requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doRequest({ | |
url: '/api/posts/:id', | |
method: 'POST', | |
params: { id: 1 }, | |
headers: { token: localStorage.getItem('token') }, | |
body: { title: 'Hello, Apicase!' } | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment