I am trying to send an integer via response.send()
but I keep getting this error
express deprecated res.send(status): Use res.sendStatus
Its deprecated Express 5 no longer supports the signature like -
res.json(200, {
result: result
});
Instead, use a method like this, means you only need to change the format of sending responses.
res.status(status).json(obj)
Example -
res.status(200).json({'success' : true, 'result': 'result'})