kopia lustrzana https://github.com/badgen/badgen.net
fix: (github) miss composed query arg #112
rodzic
3256ea01b3
commit
b52e7a040d
|
@ -59,8 +59,7 @@ const restGithub = path => axios.get(`https://api.github.com/${path}`, {
|
|||
|
||||
// request github api v4 (graphql)
|
||||
const queryGithub = query => {
|
||||
return axios.post('https://api.github.com/graphql', {
|
||||
body: { query },
|
||||
return axios.post('https://api.github.com/graphql', { query }, {
|
||||
headers: {
|
||||
...tokenHeader,
|
||||
Accept: 'application/vnd.github.hawkgirl-preview+json'
|
||||
|
|
Ładowanie…
Reference in New Issue