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