Skip to content

Commit 1da52e1

Browse files
Enables Swagger UI for Proxy API in all environments (#852)
1 parent 8c1e8ed commit 1da52e1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

dev-proxy/CommandHandlers/ProxyCommandHandler.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,11 @@ public async Task<int> InvokeAsync(InvocationContext context)
6767
});
6868

6969
var app = builder.Build();
70-
71-
if (app.Environment.IsDevelopment())
72-
{
73-
app.UseSwagger();
74-
app.UseSwaggerUI();
75-
}
76-
70+
app.UseSwagger();
71+
app.UseSwaggerUI();
7772
app.MapControllers();
7873
app.Run();
7974

80-
8175
return 0;
8276
}
8377
catch (Exception ex)

0 commit comments

Comments
 (0)