Skip to content

Commit

Permalink
Update app_revised.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth-dubey authored Jan 12, 2025
1 parent aec7e51 commit e4fa783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/angular/app_revised.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
if (type===10) {
return $http({
method:'GET',
url:'http://api.openweathermap.org/data/2.5/forecast/daily',
url:'https://api.openweathermap.org/data/2.5/forecast/daily',
params:{q:query,cnt:8,APPID:APPID} //cnt sets number of days for which the forecast is required (Max:16)
});
} else if (type===5){
return $http({
url:'http://api.openweathermap.org/data/2.5/weather',
url:'https://api.openweathermap.org/data/2.5/weather',
method:'GET',
params:{q:query,APPID:APPID}});
};
Expand Down Expand Up @@ -113,4 +113,4 @@
}
}]);
}
)();
)();

0 comments on commit e4fa783

Please sign in to comment.