html things

This commit is contained in:
Riley Davis
2017-02-10 10:52:55 -07:00
parent 52099efed9
commit 27ea409e31
3 changed files with 2 additions and 6 deletions
+1 -4
View File
@@ -5,7 +5,4 @@ import {GraphQLDocs} from 'graphql-docs';
import fetcher from './services/fetcher';
// Render the application into the DOM
ReactDOM.render(<div className='wrapper'>
<h1>Talk: GraphQL Docs</h1>
<GraphQLDocs fetcher={fetcher} />
</div>, document.querySelector('#root'));
ReactDOM.render(<GraphQLDocs fetcher={fetcher} />, document.querySelector('#root'));
+1 -1
View File
@@ -1,5 +1,5 @@
export default function fetcher(query) {
return fetch(`${window.location.origin}/api/v1/graph/ql`, {
return fetch(`${window.location.host}/api/v1/graph/ql`, {
method: 'POST',
headers: {
Accept: 'application/json',
-1
View File
@@ -27,7 +27,6 @@
</style>
</head>
<body>
<div id="root"></div>
<div id="root"></div>
<script src="/client/coral-docs/bundle.js" charset="utf-8"></script>
</body>