Lets say I have multiple places where I call response.send(someData). Now I want to create a single global interceptor where I catch all .send meth
response.send(someData)
.send
You can simply do it using NODEJS and Express, say you are calling an API and want to send modify the data before sending response back.
router.get('/id', (req,res) => { ... //your code here filling DATA let testData = { "C1": "Data1", "C2": "Data2", "yourdata": DATA }; res.send(testData); });