From 50c61040bff561e68999b114578fb55271c70c5b Mon Sep 17 00:00:00 2001 From: H Vs Date: Thu, 16 May 2024 15:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TelpoKafkaConsole.WebApi/Program.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/TelpoKafkaConsole.WebApi/Program.cs b/TelpoKafkaConsole.WebApi/Program.cs index 877fee9..8ff4b0c 100644 --- a/TelpoKafkaConsole.WebApi/Program.cs +++ b/TelpoKafkaConsole.WebApi/Program.cs @@ -47,11 +47,14 @@ namespace TelpoKafkaConsole.WebApi var app = builder.Build(); // 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();