upd: 网关swagger

This commit is contained in:
于鹏
2025-10-26 22:13:17 +08:00
parent b2bccc34f5
commit 802624e7ea
3 changed files with 14 additions and 2 deletions

View File

@ -2,6 +2,7 @@ using KonSoft.InternalGateway;
using KonSoft.InternalGateway.Extensions;
using KonSoft.Shared.Hosting.AspNetCore;
using Microsoft.AspNetCore.Rewrite;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OpenApi.Models;
using Serilog;
@ -21,7 +22,11 @@ try
.UseAutofac()
.UseSerilog();
builder.Services.AddSwaggerGen(options =>
builder.Services.AddAbpSwaggerGenWithOAuth(builder.Configuration["AuthServer:Authority"]!,
new Dictionary<string, string>
{
{ "Clean", "Clean API" }
}, options =>
{
options.SwaggerDoc("v1", new OpenApiInfo
{