From 0e72ccd733207877bd8edca55fd6aed0877139e5 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Fri, 6 Oct 2017 17:53:51 +0200 Subject: Cleanup and improvements - Save server data into file - FolderType is now a string - cleanup useless code Signed-off-by: Sebastien Douheret --- lib/apiv1/version.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/apiv1/version.go') diff --git a/lib/apiv1/version.go b/lib/apiv1/version.go index e022441..8f928ec 100644 --- a/lib/apiv1/version.go +++ b/lib/apiv1/version.go @@ -7,6 +7,7 @@ import ( ) type version struct { + ID string `json:"id"` Version string `json:"version"` APIVersion string `json:"apiVersion"` VersionGitTag string `json:"gitTag"` @@ -15,6 +16,7 @@ type version struct { // getInfo : return various information about server func (s *APIService) getVersion(c *gin.Context) { response := version{ + ID: s.cfg.ServerUID, Version: s.cfg.Version, APIVersion: s.cfg.APIVersion, VersionGitTag: s.cfg.VersionGitTag, -- cgit 1.2.3-korg