Closed linhnh123 closed 6 years ago
I setup GraphQL in Meteor server, and I created a simple API. I can not call to this api. Please help.
This is API setup:
This is command line to call api: curl -X POST http://localhost:3000/api/status
curl -X POST http://localhost:3000/api/status
This is result:
I fixed it. The reason is Meteor server and GraphQL are running in the same port (port 3000). We need to change port of GraphQL to other port (for example: 3002, etc). Close this issue.
I setup GraphQL in Meteor server, and I created a simple API. I can not call to this api. Please help.
This is API setup:
This is command line to call api:
curl -X POST http://localhost:3000/api/status
This is result: