I had a working nodejs server.I was trying to modify it.I just changed the path inside the app.js file to the new file i have written.Now i keep getting cannot POST/ error.
app.get('/mypage', function(req, res)
to
app.get('/mynewpage', function(req, res)
// routes
app.get('/iGet', function(req, res) {
res.send('GET!');
});
app.post('/iPost', function(req, res) {
res.send('POST!');
});