修改BUG:swagger功能发布后由于增加了PathBase导致工作不正常
This commit is contained in:
parent
e4e4d3bd8d
commit
11c2894f59
|
@ -143,7 +143,7 @@ namespace Bootstrap.Admin
|
|||
app.UseSwagger();
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "BootstrapAdmin API V1");
|
||||
c.SwaggerEndpoint($"{Configuration["SwaggerPathBase"]}/swagger/v1/swagger.json", "BootstrapAdmin API V1");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"MaxFileCount": 1
|
||||
}
|
||||
},
|
||||
"SwaggerPathBase": "",
|
||||
"AllowOrigins": "http://localhost:49823",
|
||||
"KeyPath": "..\\keys",
|
||||
"DisableAutomaticKeyGeneration": false,
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"SwaggerPathBase": "/BA",
|
||||
"AllowOrigins": "http://localhost,http://10.15.63.218",
|
||||
"KeyPath": "D:\\App\\Web-App\\keys",
|
||||
"ApplicationName": "__bd__",
|
||||
|
|
Loading…
Reference in New Issue