fix: update weather API URL to use HTTPS for improved security
This commit is contained in:
@@ -3,7 +3,7 @@ import { myToast } from "./toastify";
|
|||||||
export const fetchWeather = async (city: string, units: string) => {
|
export const fetchWeather = async (city: string, units: string) => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`http://backend.weather.the1s.de:7001/api/fetchWeather?city=${encodeURIComponent(
|
`https://backend.weather.the1s.de:7001/api/fetchWeather?city=${encodeURIComponent(
|
||||||
city
|
city
|
||||||
)}&units=${encodeURIComponent(units)}`,
|
)}&units=${encodeURIComponent(units)}`,
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user