fix build

This commit is contained in:
2025-12-31 16:23:14 +03:00
parent 1ca0ded172
commit 509b2e4aa1

View File

@@ -14,7 +14,7 @@ public class WorkflowEditApiChannel : WorkflowRuntimeNodeBase, IWorkflowNodeRunn
{
var builder = WebApplication.CreateBuilder();
builder.WebHost.UseUrls($"http://localhost:{Port}");
builder.Services.AddOpenApi().ConfigureHttpJsonOptions(options =>
builder.Services.ConfigureHttpJsonOptions(options =>
{
var opts = options.SerializerOptions;
opts.IncludeFields = true;
@@ -27,7 +27,6 @@ public class WorkflowEditApiChannel : WorkflowRuntimeNodeBase, IWorkflowNodeRunn
}));
_app = builder.Build();
_app.MapOpenApi();
_app.UseCors(policy => policy.AllowAnyOrigin());
_app.MapGet("/api/runtime", () => runtime);
_app.MapGet("/api/log", (Channel<LogServerEvent> channel) =>