I found in post productRouter.post(‘/’, function(req, res) { res.status(202).end(); });
I want create some record. But there is no default implementation of post method here. How can i do this. any help will be appreciated.
I found in post productRouter.post(‘/’, function(req, res) { res.status(202).end(); });
I want create some record. But there is no default implementation of post method here. How can i do this. any help will be appreciated.
What do you mean be ‘create’ As it’s a mock, you are not really creating things.
Do you mean that you want to return some kind of persistent response?