Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
Update Weather API URLs to match Azure URL and not local.
  • Loading branch information
JancoEngelbrecht authored Sep 7, 2024
1 parent 1407b25 commit 6a2ca54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
document.getElementById('action-weather').addEventListener('click', () => {
// Fetch weather data from your API
fetch('http://localhost:3000/weather')
fetch('http://newsheadlines-c0haf4f6d4bvhaa7.westeurope-01.azurewebsites.net/weather')
.then(response => response.json())
.then(data => {
document.getElementById('weatherResult').innerHTML = `
Expand Down Expand Up @@ -329,4 +329,4 @@ actionBack.addEventListener("click", () => {
});

actionMore.addEventListener("click", countAdd);
actionBack.addEventListener("click", countSubtract)
actionBack.addEventListener("click", countSubtract)

0 comments on commit 6a2ca54

Please sign in to comment.