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) => {