From a53028a7f6ce4b8500e27fc08c75d02ea456b8ff Mon Sep 17 00:00:00 2001 From: DevanshPaliwal <78657285+DevanshPaliwal@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:05:01 +0530 Subject: [PATCH] Update weather.js --- Weather App/api/weather.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Weather App/api/weather.js b/Weather App/api/weather.js index 9caad0fc..0c69d2a7 100644 --- a/Weather App/api/weather.js +++ b/Weather App/api/weather.js @@ -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 ` @@ -28,4 +28,4 @@ export const fetchForecast = params =>{ export const fetchLocation = params =>{ let locationUrl=locationsEndpoint(params) return apiCall(locationUrl) -} \ No newline at end of file +}