From 38aff235316e8d49bf3558bfaa44f4c6ab2b78a4 Mon Sep 17 00:00:00 2001 From: liaoxujun@qq.com <liaoxujun@qq.com> Date: 星期五, 15 九月 2023 17:26:58 +0800 Subject: [PATCH] 修改权限体系,增加标书信息管理权限分离,分为标书信息管理平台使用,和标书制作管理使用,修改权限表,订单表 --- DocumentFile.Service/Program.cs | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/DocumentFile.Service/Program.cs b/DocumentFile.Service/Program.cs index b808f8e..eb31e67 100644 --- a/DocumentFile.Service/Program.cs +++ b/DocumentFile.Service/Program.cs @@ -37,13 +37,16 @@ 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(); +//app.UseHttpsRedirection(); app.UseAuthorization(); -- Gitblit v1.9.1