修改BUG:swagger UI的json字符串未授权

This commit is contained in:
Argo-MacBookPro 2018-10-25 13:29:12 +08:00
parent bede29fa51
commit 11d4a13dfe
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ namespace Bootstrap.Admin
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
app.UseWhen(context => context.Request.Path == "/swagger/index.html", builder =>
app.UseWhen(context => context.Request.Path.StartsWithSegments("/swagger"), builder =>
{
builder.Use(async (context, next) =>
{