From 7b924fa075254a7cbadf0ce3f2d8a80d7792c1de Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 26 Sep 2025 00:03:09 +0800 Subject: [PATCH] :bug: Fix something --- DysonNetwork.Shared/Http/SwaggerGen.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/DysonNetwork.Shared/Http/SwaggerGen.cs b/DysonNetwork.Shared/Http/SwaggerGen.cs index 4d6bff7..05efff7 100644 --- a/DysonNetwork.Shared/Http/SwaggerGen.cs +++ b/DysonNetwork.Shared/Http/SwaggerGen.cs @@ -67,13 +67,7 @@ public static class SwaggerGen { var publicBasePath = configuration["Swagger:PublicBasePath"]?.TrimEnd('/') ?? ""; - // 1. Adjust servers - swaggerDoc.Servers = new List - { - new() { Url = publicBasePath } - }; - - // 2. Rewrite all path keys (remove /api or replace it) + // Rewrite all path keys (remove /api or replace it) var newPaths = new OpenApiPaths(); foreach (var (path, pathItem) in swaggerDoc.Paths) {