Attempt to reuse the application if it's already running

This commit is contained in:
Andrei Pohilko
2022-10-28 18:28:08 +01:00
parent c5f9f71e45
commit 2e8ba39b8f
5 changed files with 28 additions and 5 deletions

View File

@@ -71,6 +71,7 @@ func configureRoutes(abortWeb utils.ControlChan, data *subproc.DataLayer, api *g
})
api.GET("/status", func(c *gin.Context) {
c.Header("X-Application-Name", "Helm Dashboard by Komodor.io") // to identify ourselves by ourselves
c.IndentedJSON(http.StatusOK, data.VersionInfo)
})