do something like (cf. comment line 21):
```
res.json(handleResponse(req.url, results, {...}));
```