exp: logs headers to test on server

Manish 1 year ago
parent 323f6abf59
commit f9d726a5fc

@ -21,6 +21,7 @@ app.get("/", function (req, res) {
// your first API endpoint...
app.get("/api/whoami", (req, res) => {
console.log(req.headers);
res.json({
ipaddress: req.ip,
language: req.headers["accept-language"],

Loading…
Cancel
Save