fix/removed redundant code and fixed UI challenge 1 problem

This commit is contained in:
Joaquin committed 2025-05-09 10:55:02 -07:00
1 parent 69fd776c0f
commit 22850ab2a2
2 files changed
+2 -12

No files matched your search

-10
View File
@@ -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) => {