update Program.cs
This commit is contained in:
parent
53928c1ce1
commit
76c25c94d7
@ -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();
|
|
||||||
}
|
|
||||||
//使可以多次多去body内容
|
//使可以多次多去body内容
|
||||||
app.Use((context, next) =>
|
app.Use((context, next) =>
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user