diff --git a/src/bundles/Elsa.ServerAndStudio.Web/appsettings.json b/src/bundles/Elsa.ServerAndStudio.Web/appsettings.json index a8caf8fe0a..6a427b4da0 100644 --- a/src/bundles/Elsa.ServerAndStudio.Web/appsettings.json +++ b/src/bundles/Elsa.ServerAndStudio.Web/appsettings.json @@ -66,6 +66,7 @@ "DefaultSender": "noreply@crmservices.com" }, "Http": { + "BaseUrl": "https://localhost:5001", "BasePath": "/api/workflows" }, "Webhooks": { diff --git a/src/modules/Elsa.Http/UIHints/HttpEndpointPathUIHandler.cs b/src/modules/Elsa.Http/UIHints/HttpEndpointPathUIHandler.cs index e81a9d8402..0258340bea 100644 --- a/src/modules/Elsa.Http/UIHints/HttpEndpointPathUIHandler.cs +++ b/src/modules/Elsa.Http/UIHints/HttpEndpointPathUIHandler.cs @@ -16,8 +16,8 @@ public class HttpEndpointPathUIHandler(IOptions options) : public ValueTask> GetUIPropertiesAsync(PropertyInfo propertyInfo, object? context, CancellationToken cancellationToken = default) { var baseUrl = options.Value.BaseUrl; - var apiRoutePrefix = options.Value.ApiRoutePrefix; - var completeBaseUrl = new Uri(baseUrl, apiRoutePrefix); + var basePath = options.Value.BasePath; + var completeBaseUrl = new Uri(baseUrl, basePath); return new(new Dictionary {