Browse Source

调整

develop
H Vs 6 months ago
parent
commit
50c61040bf
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      TelpoKafkaConsole.WebApi/Program.cs

+ 8
- 5
TelpoKafkaConsole.WebApi/Program.cs View File

@@ -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();



Loading…
Cancel
Save