【修复】修复接口端swagger自定义路径失效的问题。

This commit is contained in:
jianweie code
2024-09-17 00:17:17 +08:00
parent 465e76574a
commit ca4d051189

View File

@@ -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定时任务