From 36791a5d2519ecc4054546c57fa6b60755b68742 Mon Sep 17 00:00:00 2001 From: Mohamed Ali Date: Fri, 29 Dec 2023 10:51:13 +0300 Subject: [PATCH] Fix Httpendpoint Path --- src/bundles/Elsa.ServerAndStudio.Web/appsettings.json | 1 + src/modules/Elsa.Http/UIHints/HttpEndpointPathUIHandler.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 {