Its legacy Express 5 no longer supports signature, as -
res.json(200, { result: result });
Instead, use this method, which means that you only need to change the format for sending responses.
res.status(status).json(obj)
Example -
res.status(200).json({'success' : true, 'result': 'result'})
Dere Sagar May 13 '19 at 9:23 a.m. 2019-05-13 09:23
source share