diff --git a/app.js b/app.js index ff449a4..bc48457 100644 --- a/app.js +++ b/app.js @@ -154,16 +154,6 @@ app.post('/resetLink', async (req, res) => { res.redirect('/login'); }); -app.post('/api/location', async (req, res) => { - const { latitude, longitude } = req.body; - - const response = await fetch(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${latitude},${longitude}&result_type=country&key=${process.env.geolocation_api}`); - - const data = await response.json(); - - res.json(data); -}); - // 404 handler - keep the actual notFound route please // REALLY DONT DELETE THIS app.get('/notFound', (req, res) => { diff --git a/src/views/partials/header.ejs b/src/views/partials/header.ejs index f48549f..90410ca 100644 --- a/src/views/partials/header.ejs +++ b/src/views/partials/header.ejs @@ -22,7 +22,7 @@
+