From c5cae80b64b4c56601835f4d40e204a462563094 Mon Sep 17 00:00:00 2001 From: liaoxujun@qq.com <liaoxujun@qq.com> Date: 星期二, 29 八月 2023 16:56:38 +0800 Subject: [PATCH] 修正登录逻辑 取消租户登录选项,修正消息租户会自动创建一个员工账号,一企业账号 --- DocumentFile.Service/Program.cs | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/DocumentFile.Service/Program.cs b/DocumentFile.Service/Program.cs index b808f8e..17cc37e 100644 --- a/DocumentFile.Service/Program.cs +++ b/DocumentFile.Service/Program.cs @@ -37,11 +37,14 @@ var app = builder.Build(); // Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) +app.UseSwagger(); +app.UseSwaggerUI(c => { - app.UseSwagger(); - app.UseSwaggerUI(); -} + c.SwaggerEndpoint("/swagger/v1/swagger.json", "V1 Docs"); + c.RoutePrefix = string.Empty; + c.DocExpansion(Swashbuckle.AspNetCore.SwaggerUI.DocExpansion.None); + c.DefaultModelsExpandDepth(-1); +}); app.UseHttpsRedirection(); -- Gitblit v1.9.1