From ca4d0511897c2cc1ca53156c1560baddc0f2e372 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Tue, 17 Sep 2024 00:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=8E=A5=E5=8F=A3=E7=AB=AFswagger=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=B7=AF=E5=BE=84=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Web.WebApi/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreCms.Net.Web.WebApi/Program.cs b/CoreCms.Net.Web.WebApi/Program.cs index 0ecb2f5c..c70cc54c 100644 --- a/CoreCms.Net.Web.WebApi/Program.cs +++ b/CoreCms.Net.Web.WebApi/Program.cs @@ -209,7 +209,7 @@ app.UseSwagger().UseSwaggerUI(c => { c.SwaggerEndpoint($"/swagger/{version}/swagger.json", $"Doc {version}"); }); - c.RoutePrefix = "doc"; + c.RoutePrefix = AppSettingsConstVars.SwaggerRoutePrefix; }); #region Hangfire定时任务