@@ -47,11 +47,14 @@ namespace TelpoKafkaConsole.WebApi | |||||
var app = builder.Build(); | var app = builder.Build(); | ||||
// Configure the HTTP request pipeline. | // Configure the HTTP request pipeline. | ||||
if (app.Environment.IsDevelopment()) | |||||
{ | |||||
app.UseSwagger(); | |||||
app.UseSwaggerUI(); | |||||
} | |||||
//if (app.Environment.IsDevelopment()) | |||||
//{ | |||||
// app.UseSwagger(); | |||||
// app.UseSwaggerUI(); | |||||
//} | |||||
app.UseSwagger(); | |||||
app.UseSwaggerUI(); | |||||
app.UseAuthorization(); | app.UseAuthorization(); | ||||