9 lines
216 B
JavaScript
9 lines
216 B
JavaScript
import ApolloClient from 'apollo-boost';
|
|
import csrf from '~/lib/utils/csrf';
|
|
|
|
export default new ApolloClient({
|
|
uri: `${gon.relative_url_root}/api/graphql`,
|
|
headers: {
|
|
[csrf.headerKey]: csrf.token,
|
|
},
|
|
});
|