storj/web/satellite/src/utils/apolloManager.ts
Bogdan Artemenko f9fbda1ec5
Auth logic additions (#710)
* Added License reference at the beginning of each file
2018-11-27 12:51:33 +02:00

16 lines
447 B
TypeScript

// Copyright (C) 2018 Storj Labs, Inc.
// See LICENSE for copying information.
import {HttpLink} from "apollo-link-http";
import ApolloClient from "apollo-client/ApolloClient";
import {InMemoryCache} from "apollo-cache-inmemory";
const satelliteUrl = new HttpLink({
uri: 'http://192.168.1.90:8081/api/graphql/v0',
});
export default new ApolloClient({
link: satelliteUrl,
cache: new InMemoryCache(),
connectToDevTools: true,
});