Add VersionInfo struct to render in the /info endpoint

This commit is contained in:
Dan Sosedoff
2022-12-01 16:41:46 -06:00
parent 9b8cbb05e3
commit dafda4a977
2 changed files with 18 additions and 6 deletions

View File

@@ -499,12 +499,7 @@ func GetBookmarks(c *gin.Context) {
// GetInfo renders the pgweb system information
func GetInfo(c *gin.Context) {
successResponse(c, gin.H{
"version": command.Version,
"go_version": command.GoVersion,
"git_sha": command.GitCommit,
"build_time": command.BuildTime,
})
successResponse(c, command.Info)
}
// DataExport performs database table export