Replaced ApiBaseUrl and DataApiBaseUrl with BaseUrl, ApiDefaultUrl, and service-specific configuration sections (AuthService, UserManagerService, DbFirstService). Updated AppSettings and all code references to use the new structure. Revised logic for HTTP client base URL selection to prefer service-specific settings. Updated appsettings files and added an example configuration for clarity and maintainability.
26 lines
500 B
JSON
26 lines
500 B
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"ApiDefaultUrl": "https://localhost:7204/",
|
|
"AuthService": {
|
|
"BaseUrl": null,
|
|
"Login": "auth/login",
|
|
"Logout": "auth/logout",
|
|
"Check": "auth/check"
|
|
},
|
|
"UserManagerService": {
|
|
"BaseUrl": null,
|
|
"GetUserInfo": "user/info",
|
|
"UpdateUserInfo": "user/update"
|
|
},
|
|
"DbFirstService": {
|
|
"BaseUrl": null,
|
|
"GetData": "dbfirst/data",
|
|
"UpdateData": "dbfirst/update"
|
|
}
|
|
}
|