显示Swagger UI
This commit is contained in:
parent
3d83cf0ccb
commit
469ea285f2
@ -76,8 +76,8 @@ namespace JiShe.CollectBus.Host
|
||||
app.UseCors(CollectBusHostConst.DefaultCorsPolicyName);
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
//if (env.IsDevelopment())
|
||||
//{
|
||||
app.UseSwagger();
|
||||
app.UseAbpSwaggerUI(options =>
|
||||
{
|
||||
@ -88,7 +88,7 @@ namespace JiShe.CollectBus.Host
|
||||
options.DocExpansion(DocExpansion.None);
|
||||
options.DefaultModelsExpandDepth(-1);
|
||||
});
|
||||
}
|
||||
//}
|
||||
app.UseAuditing();
|
||||
app.UseAbpSerilogEnrichers();
|
||||
app.UseUnitOfWork();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user