Skip to content

Commit

Permalink
Update API to https
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaserdmenger committed Feb 26, 2024
1 parent 66f8919 commit 412fc6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const getUserData = (e) => {

// Fetch City from API
fetch(
`http://api.openweathermap.org/geo/1.0/direct?q=${userInputVal}&limit=10&appid=${KEY}&units=metric&lang=de`
`https://api.openweathermap.org/geo/1.0/direct?q=${userInputVal}&limit=10&appid=${KEY}&units=metric&lang=de`
)
.then((res) => res.json())
.then((cities) => renderMenu(cities))
Expand Down

0 comments on commit 412fc6e

Please sign in to comment.