Skip to content

Commit

Permalink
add headers
Browse files Browse the repository at this point in the history
  • Loading branch information
GZ315200 committed Dec 25, 2019
1 parent 9b256c4 commit afed967
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion final/client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ import injectStyles from "./styles";
const cache = new InMemoryCache();
const link = new HttpLink({
uri: "http://localhost:4000/graphql",
headers: { authorization: localStorage.getItem("token") }
headers: {
authorization: localStorage.getItem("token"),
'client-name': 'Space Explorer [web]',
'client-version': '1.0.0',
}
});
const client = new ApolloClient({
cache,
Expand Down
5 changes: 5 additions & 0 deletions final/server/apollo.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
service: {
name: 'space-explorer',
},
};
Binary file modified final/server/store.sqlite
Binary file not shown.

0 comments on commit afed967

Please sign in to comment.