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