chore: 开启各环境 Swagger 显示
This commit is contained in:
@@ -37,12 +37,6 @@ public static class SwaggerExtensions
|
||||
/// </summary>
|
||||
public static IApplicationBuilder UseSharedSwagger(this IApplicationBuilder app)
|
||||
{
|
||||
var env = app.ApplicationServices.GetRequiredService<IHostEnvironment>();
|
||||
if (!env.IsDevelopment())
|
||||
{
|
||||
return app;
|
||||
}
|
||||
|
||||
var provider = app.ApplicationServices.GetRequiredService<IApiVersionDescriptionProvider>();
|
||||
var settings = app.ApplicationServices.GetRequiredService<SwaggerDocumentSettings>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user