diff --git a/Iceshrimp.Backend/Core/Extensions/ServiceExtensions.cs b/Iceshrimp.Backend/Core/Extensions/ServiceExtensions.cs index 032ebdcc..855b4b7c 100644 --- a/Iceshrimp.Backend/Core/Extensions/ServiceExtensions.cs +++ b/Iceshrimp.Backend/Core/Extensions/ServiceExtensions.cs @@ -174,9 +174,10 @@ public static class ServiceExtensions { options.SupportNonNullableReferenceTypes(); - options.SwaggerDoc("iceshrimp", new OpenApiInfo { Title = "Iceshrimp.NET" }); - options.SwaggerDoc("federation", new OpenApiInfo { Title = "Federation" }); - options.SwaggerDoc("mastodon", new OpenApiInfo { Title = "Mastodon" }); + var version = new Config.InstanceSection().Version; + options.SwaggerDoc("iceshrimp", new OpenApiInfo { Title = "Iceshrimp.NET", Version = version }); + options.SwaggerDoc("federation", new OpenApiInfo { Title = "Federation", Version = version }); + options.SwaggerDoc("mastodon", new OpenApiInfo { Title = "Mastodon", Version = version }); options.AddSecurityDefinition("iceshrimp", new OpenApiSecurityScheme