Last active
September 11, 2018 21:19
-
-
Save dlbnco/6b283355c2357946e5da635a42c9e4b6 to your computer and use it in GitHub Desktop.
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
import axios from 'axios' | |
import apiUrl from '../config' | |
axios({ | |
method: 'post', | |
url: apiUrl, | |
headers: { | |
Authorization: localStorage.getItem('token'), | |
}, | |
data: { | |
query: ` | |
{ | |
allCandy { | |
id | |
name | |
effects | |
} | |
}`, | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment