Skip to content

Commit

Permalink
api patches
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushKun committed Aug 20, 2024
1 parent fdb9afb commit 22827a3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions next_app/backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ app.post('/analytics', (req, res) => {
const timestamp = new Date().toISOString();
const body = req.body as TBody;
const ipAddress = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
console.log(ipAddress)
const geoLocation = req.headers['cf-ipcountry'];
console.log(geoLocation)
const geoCity = req.headers['cf-ipcity'];
console.log(geoCity)

console.log(ipAddress, body)

switch (body.action) {
case "codecell_load":
Expand Down

0 comments on commit 22827a3

Please sign in to comment.