Add an endpoint with the version information
parent
a4f3b401e6
commit
cefe919c67
|
@ -126,6 +126,7 @@ app.UseRateLimiter();
|
|||
app.UseOutputCache();
|
||||
|
||||
app.MapPrometheusScrapingEndpoint();
|
||||
app.MapGet("/version", () => serviceVersion);
|
||||
|
||||
var versionSet = app.NewApiVersionSet()
|
||||
.HasApiVersion(1.0)
|
||||
|
|
Loading…
Reference in New Issue