import axios from 'axios'
import apiUrl from '../config'
axios({
method: 'post',
url: apiUrl,
headers: {
Authorization: localStorage.getItem('token'),
},
data: {
query: `
{
allCandy {
id
name
effects
}
}`,
},
})