Skip to content

Commit 92b61d7

Browse files
committed
fix: show build version
1 parent 5610739 commit 92b61d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WebApi/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
app.UseSwaggerUI(opts =>
5353
{
54-
opts.SwaggerEndpoint("/v1/swagger.json", "A Centralized Mirror API: v1");
54+
opts.SwaggerEndpoint("/v1/swagger.json", $"A Centralized Mirror API: v1 (build {Assembly.GetExecutingAssembly().GetName().Version?.ToString(3) ?? "unknown"})");
5555
opts.SupportedSubmitMethods(Array.Empty<SubmitMethod>()); // Disable the 'Try it out' button. All endpoints require API keys so it's useless anyway.
5656
opts.RoutePrefix = "docs";
5757
opts.DocumentTitle = "A Centralized Mirror API Documentation";

0 commit comments

Comments
 (0)