Add default api url

This commit is contained in:
Loporrit
2025-08-05 08:29:51 +00:00
parent b773443b68
commit 9d9ec9cafc
3 changed files with 5 additions and 0 deletions

View File

@@ -91,6 +91,8 @@ public class HubFactory : MediatorSubscriberBase
{
var mainServerConfig = await _remoteConfig.GetConfigAsync<HubConnectionConfig>("mainServer").ConfigureAwait(false) ?? new();
defaultConfig = mainServerConfig;
if (string.IsNullOrEmpty(mainServerConfig.ApiUrl))
defaultConfig.ApiUrl = ApiController.LoporritServiceApiUri;
if (string.IsNullOrEmpty(mainServerConfig.HubUrl))
defaultConfig.HubUrl = ApiController.LoporritServiceHubUri;
}