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