Just a simple cleanup to avoid the repeated repeated res.setHeader('Content-Type', 'application/json'); since ReS/ReE are already using res.json() and it "sends a response (with the correct content-type)", according to the express docs: https://expressjs.com/en/api.html#res.json
Just a simple cleanup to avoid the repeated repeated
res.setHeader('Content-Type', 'application/json');
since ReS/ReE are already usingres.json()
and it "sends a response (with the correct content-type)", according to the express docs: https://expressjs.com/en/api.html#res.json