Add an endpoint with the version information

pull/178/head
David Fowler 2022-11-05 14:21:28 -07:00
parent a4f3b401e6
commit cefe919c67
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ app.UseRateLimiter();
app.UseOutputCache();
app.MapPrometheusScrapingEndpoint();
app.MapGet("/version", () => serviceVersion);
var versionSet = app.NewApiVersionSet()
.HasApiVersion(1.0)