whereToApplication / whereTo

trip planning application
3 stars 0 forks source link

/feedback route not posting data to backend #52

Closed krrishdholakia closed 5 years ago

krrishdholakia commented 5 years ago

Feedback route not posting data correctly to backend. object is being created but the feedback is not being stored there.

krrishdholakia commented 5 years ago
screen shot 2018-11-13 at 1 54 42 am
krrishdholakia commented 5 years ago

Tried to debug the problem but couldn't get the process.env.MONGODB_URI variable.

@thejameswang could you share the heroku credentials?

thejameswang commented 5 years ago

To create a post request with Postman. Send data through Body using Raw in a JSON format like, { "feedback": "This is a test feedback" }

Also, remember to make Headers: content-type to be application/JSON