Skip to content

Commit

Permalink
log ip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispsheehan committed Feb 23, 2024
1 parent 9d027c3 commit 954d0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app.use((req, res, next) => {
console.log(`Params: ${JSON.stringify(req.params)}`); // log out requests
console.log(`Headers: ${JSON.stringify(req.headers)}`);
console.log(`${req.method}: ${JSON.stringify(req.url)}`);
res.status(200).json({msg: "Hello, this is your AWS Lambda function, [mushroom] testy badgers!"});
res.status(200).json({msg: `Hello, your ip is ${ipAddress}`});
})

const server = awsServerlessExpress.createServer(app);
Expand Down

0 comments on commit 954d0e0

Please sign in to comment.