debian-mirror-gitlab/app/assets/javascripts/lib/graphql.js

10 lines
216 B
JavaScript
Raw Normal View History

2019-02-15 15:39:39 +05:30
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,
},
});