How can i use http-mock for post method


#1

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.


#2

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?