Skip to content

Commit

Permalink
Enables Swagger UI for Proxy API in all environments (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
waldekmastykarz authored Aug 21, 2024
1 parent 8c1e8ed commit 1da52e1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions dev-proxy/CommandHandlers/ProxyCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,11 @@ public async Task<int> InvokeAsync(InvocationContext context)
});

var app = builder.Build();

if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}

app.UseSwagger();
app.UseSwaggerUI();
app.MapControllers();
app.Run();


return 0;
}
catch (Exception ex)
Expand Down

0 comments on commit 1da52e1

Please sign in to comment.