Solution to Request Header Parser Microservice

What is your hint or solution suggestion?

Solution
app.get("/api/whoami", function (req, res) {

  let agent = req.get('User-Agent');
  let ip = req.ip
  let lang = req.headers["accept-language"]
  res.json({ipaddress: ip,language:lang, software: agent})
  
});

Challenge: Request Header Parser Microservice

Link to the challenge:

Hello there.

Thank you, for your contribution. For future contributions, please wrap your solution within :

[details]
```
code goes here...
```
[/details]

Also, provide all of the necessary code to pass the challenge.