💥 Moved the /id to /pass and bug fixes of moved realms

This commit is contained in:
2025-10-22 22:52:09 +08:00
parent cf87fdfb49
commit dd5929c691
13 changed files with 163 additions and 202 deletions

View File

@@ -56,7 +56,7 @@ public static class SwaggerGen
return builder;
}
public static WebApplication UseSwaggerManifest(this WebApplication app)
public static WebApplication UseSwaggerManifest(this WebApplication app, string serviceName)
{
app.MapOpenApi();
@@ -103,7 +103,7 @@ public static class SwaggerGen
var publicBasePath = configuration["Swagger:PublicBasePath"]?.TrimEnd('/') ?? "";
options.SwaggerEndpoint(
$"{publicBasePath}/swagger/v1/swagger.json",
"Develop API v1");
$"{serviceName} API v1");
});
return app;