split api settings
This commit is contained in:
parent
47d34eb4d1
commit
9add92c170
@ -13,8 +13,8 @@ namespace WeatherDashboard.Web.Services
|
|||||||
{
|
{
|
||||||
this.configuration = configuration;
|
this.configuration = configuration;
|
||||||
|
|
||||||
apiBaseUrl = configuration["ApiBaseUrl"];
|
apiBaseUrl = configuration["Api:BaseUrl"];
|
||||||
apiKey = configuration["ApiKey"];
|
apiKey = configuration["Api:Key"];
|
||||||
|
|
||||||
httpClient = httpClientFactory.CreateClient();
|
httpClient = httpClientFactory.CreateClient();
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"ApiBaseUrl": "https://api.weatherapi.com",
|
"Api": {
|
||||||
"ApiKey": "829fbbe5beb2424aa1021928230702"
|
"BaseUrl": "https://api.weatherapi.com",
|
||||||
|
"Key": "829fbbe5beb2424aa1021928230702"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user