mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 02:01:40 -05:00
Remove unnecessary route in Koa example (#493)
It is my understanding that `POST` to `/graphiql` will never occur since GraphiQL will talk to `/graphql` directly. Since this is not needed we may want to remove it to avoid confusion.
This commit is contained in:
parent
d102a88067
commit
7a4c9e3e75
1 changed files with 0 additions and 1 deletions
|
@ -125,7 +125,6 @@ const PORT = 3000;
|
|||
router.post('/graphql', koaBody(), graphqlKoa({ schema: myGraphQLSchema }));
|
||||
router.get('/graphql', graphqlKoa({ schema: myGraphQLSchema }));
|
||||
|
||||
router.post('/graphiql', graphiqlKoa({ endpointURL: '/graphql' }));
|
||||
router.get('/graphiql', graphiqlKoa({ endpointURL: '/graphql' }));
|
||||
|
||||
app.use(router.routes());
|
||||
|
|
Loading…
Add table
Reference in a new issue