Skip to content

Commit

Permalink
Fix Httpendpoint Path
Browse files Browse the repository at this point in the history
  • Loading branch information
mohdali committed Dec 29, 2023
1 parent bdc9d47 commit 36791a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/bundles/Elsa.ServerAndStudio.Web/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"DefaultSender": "[email protected]"
},
"Http": {
"BaseUrl": "https://localhost:5001",
"BasePath": "/api/workflows"
},
"Webhooks": {
Expand Down
4 changes: 2 additions & 2 deletions src/modules/Elsa.Http/UIHints/HttpEndpointPathUIHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class HttpEndpointPathUIHandler(IOptions<HttpActivityOptions> options) :
public ValueTask<IDictionary<string, object>> 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<string, object>
{
Expand Down

0 comments on commit 36791a5

Please sign in to comment.