This commit is contained in:
tanglong 2025-07-29 14:07:03 +08:00
parent 88cc43ec0e
commit 5ac1bdc673

View File

@ -283,13 +283,13 @@ namespace YD_XinWei.Api
//配置HttpContext
app.UseStaticHttpContext();
app.UseSwagger();
app.UseSwaggerUI(c =>
{
//2个下拉框选项 选择对应的文档
c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_XinWei.Api");
c.RoutePrefix = "";
});
//app.UseSwagger();
//app.UseSwaggerUI(c =>
//{
// //2个下拉框选项 选择对应的文档
// c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_XinWei.Api");
// c.RoutePrefix = "";
//});
app.UseRouting();
app.UseCors();
app.UseAuthentication();