Skip to content

Commit 4a8462e

Browse files
committed
Because URL PARAMS ARE COOLER
1 parent e4036ce commit 4a8462e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ app.get('/', async (req, res) => {
5050

5151
});
5252

53-
app.get('/weather/:city', async (req, res) => {
53+
app.get('/weather/:city', async (req, res) => { // Because URL PARAMS ARE COOLER
5454
const city = req.params.city;
5555
await Axios.get(`https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=84f0c05e16abc57b03ca8fa00b59f78e&units=metric`).then(weather => {
5656
return res.json({

0 commit comments

Comments
 (0)