Skip to content

Commit

Permalink
Update weather.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanshPaliwal authored Aug 2, 2024
1 parent 3cd2751 commit a53028a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Weather App/api/weather.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios";

let apiKey="153ab2c85b5646d9a58162344241905"
let apiKey="your api key"

const forecastEndpoint=params=>`http://api.weatherapi.com/v1/forecast.json?key=${apiKey}&q=${params.city}&days=7&aqi=no&alerts=no
`
Expand Down Expand Up @@ -28,4 +28,4 @@ export const fetchForecast = params =>{
export const fetchLocation = params =>{
let locationUrl=locationsEndpoint(params)
return apiCall(locationUrl)
}
}

0 comments on commit a53028a

Please sign in to comment.