fix/removed redundant code and fixed UI challenge 1 problem
This commit is contained in:
1 parent
69fd776c0f
commit
22850ab2a2
2 files changed
+2
-12
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user