From 11d4a13dfef08e6eb5d87b74a48d1c9ae840d1cb Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Thu, 25 Oct 2018 13:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9Aswagger=20UI?= =?UTF-8?q?=E7=9A=84json=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=9C=AA=E6=8E=88?= =?UTF-8?q?=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Startup.cs b/Bootstrap.Admin/Startup.cs index 7a756cf3..8b1f6f40 100644 --- a/Bootstrap.Admin/Startup.cs +++ b/Bootstrap.Admin/Startup.cs @@ -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) => {