mirror of
https://github.com/wassname/talk.git
synced 2026-07-28 11:27:05 +08:00
html things
This commit is contained in:
@@ -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,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',
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user