Skip to content

Commit 55372d3

Browse files
committed
updated api url protocol
1 parent 8245da7 commit 55372d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context/weatherContext.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const WeatherProvider = ({
2626

2727
const fetchWeather = useCallback(async (city: string) => {
2828
const apiKey = import.meta.env.VITE_WEATHER_API_KEY;
29-
const apiUrl = `http://api.weatherapi.com/v1/forecast.json?key=${apiKey}&q=${city}&days=5`;
29+
const apiUrl = `https://api.weatherapi.com/v1/forecast.json?key=${apiKey}&q=${city}&days=5`;
3030

3131
try {
3232
const response = await fetch(apiUrl);

0 commit comments

Comments
 (0)