From cefe919c6717d06a6e3af31ee11b854b3914752c Mon Sep 17 00:00:00 2001 From: David Fowler Date: Sat, 5 Nov 2022 14:21:28 -0700 Subject: [PATCH] Add an endpoint with the version information --- src/Services/Podcasts/Podcast.MinimalAPI/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs index 561b6e9..8977278 100644 --- a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs +++ b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs @@ -126,6 +126,7 @@ app.UseRateLimiter(); app.UseOutputCache(); app.MapPrometheusScrapingEndpoint(); +app.MapGet("/version", () => serviceVersion); var versionSet = app.NewApiVersionSet() .HasApiVersion(1.0)