修改BUG:swagger UI的json字符串未授权
This commit is contained in:
parent
bede29fa51
commit
11d4a13dfe
|
@ -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) =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue