update Program.cs

This commit is contained in:
不做码农
2022-05-19 18:34:52 +08:00
parent 53928c1ce1
commit 76c25c94d7

View File

@@ -82,11 +82,8 @@ builder.Services.AddSwaggerConfig();
var app = builder.Build(); var app = builder.Build();
if (app.Environment.IsDevelopment()) app.UseSwagger();
{
app.UseSwagger();
app.UseSwaggerUI();
}
//ʹ<><CAB9><EFBFBD>Զ<EFBFBD><D4B6>ζ<EFBFBD>ȥbody<64><79><EFBFBD><EFBFBD> //ʹ<><CAB9><EFBFBD>Զ<EFBFBD><D4B6>ζ<EFBFBD>ȥbody<64><79><EFBFBD><EFBFBD>
app.Use((context, next) => app.Use((context, next) =>
{ {