Welcome to mirror list, hosted at ThFree Co, Russian Federation.

graphql.js « lib « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 20a0f142d9e9202503e4872c49ae8a2f1bdb44ad (plain)
1
2
3
4
5
6
7
8
9
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,
  },
});