|
|
@ -459,6 +459,10 @@ public class WebPeisHttpApiHostModule : AbpModule |
|
|
app.UseDynamicClaims(); |
|
|
app.UseDynamicClaims(); |
|
|
app.UseAuthorization(); |
|
|
app.UseAuthorization(); |
|
|
|
|
|
|
|
|
|
|
|
//配置是否启用swagger
|
|
|
|
|
|
var IsSwagger = Convert.ToBoolean(configuration["Swagger:IsEnabled"]); |
|
|
|
|
|
if (IsSwagger) |
|
|
|
|
|
{ |
|
|
app.UseSwagger(); |
|
|
app.UseSwagger(); |
|
|
app.UseAbpSwaggerUI(c => |
|
|
app.UseAbpSwaggerUI(c => |
|
|
{ |
|
|
{ |
|
|
@ -472,7 +476,7 @@ public class WebPeisHttpApiHostModule : AbpModule |
|
|
c.OAuthScopes("WebPeis"); |
|
|
c.OAuthScopes("WebPeis"); |
|
|
c.DefaultModelExpandDepth(-1); |
|
|
c.DefaultModelExpandDepth(-1); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
app.UseAuditing(); |
|
|
app.UseAuditing(); |
|
|
app.UseAbpSerilogEnrichers(); |
|
|
app.UseAbpSerilogEnrichers(); |
|
|
app.UseConfiguredEndpoints(); |
|
|
app.UseConfiguredEndpoints(); |
|
|
|