Hint
For this you will need to tap into the http headers. This can be accessed with req.headers
in your route. Try console logging this to find the information you need.
Solution
app.get('/api/whoami', (req, res) => {
const ip = req.headers["x-forwarded-for"]
const lang = req.headers["accept-language"]
const software = req.headers["user-agent"]
res.json({ipaddress: ip, language: lang, software})
})
Challenge: Request Header Parser Microservice
Link to the challenge: