vasansr / react-tutorial-mern

Build a complete React app, step-by-step with the MERN stack
https://hashnode.com/post/react-tutorial-using-mern-stack-ciiyus9m700qqge53mer0isxz
97 stars 28 forks source link

ajax call fails if using GET #6

Closed superdtx closed 7 years ago

superdtx commented 7 years ago

$.ajax('/api/bugs').done(function(data) { in App.js is using GET method

app.get('/api/bugs/', function(req, res) { in webapp.js is using POST method to respond to client

I think there is mismatch here.