I want to accept post request to my Angular application from other application.
Basically they will send customer id list as a POST payload and I have to process it in my angular application & render GUI.
I tried following app.post method in app.js but It throws error "Cannot do POST"
app.post('/customer', function (req, res) {
console.log(req.body);
});
It is a bit awkward requirement since Angular is JavaScript framework and It does not accept post request because post request needs to be handled at server side only not at client side.
But Is there any work around like accept post request in Node JS and send to angular application and render UI ? Might be a dumb idea so need some idea or work around at least.
Edit:= More Information
I have Node JS application which is mainly to get live data feed through socket.io.