File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React, { Component } from 'react';
22import axios from 'axios' ;
33
44const axiosGitHubGraphQL = axios . create ( {
5- baseURL : 'https://api.github.com' ,
5+ baseURL : 'https://api.github.com/graphql ' ,
66 headers : {
77 Authorization : `bearer ${
88 process . env . REACT_APP_GITHUB_PERSONAL_ACCESS_TOKEN
@@ -57,15 +57,15 @@ const getAddReactionToIssueMutation = issueId => `
5757` ;
5858
5959const addReactionToIssue = issueId => {
60- return axiosGitHubGraphQL . post ( '/graphql ' , {
60+ return axiosGitHubGraphQL . post ( '' , {
6161 query : getAddReactionToIssueMutation ( issueId ) ,
6262 } ) ;
6363} ;
6464
6565const getIssuesOfRepository = path => {
6666 const [ organization , repository ] = path . split ( '/' ) ;
6767
68- return axiosGitHubGraphQL . post ( '/graphql ' , {
68+ return axiosGitHubGraphQL . post ( '' , {
6969 query : getIssuesOfRepositoryQuery ( organization , repository ) ,
7070 } ) ;
7171} ;
You can’t perform that action at this time.
0 commit comments