Add VersionInfo struct to render in the /info endpoint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user