6 "github.com/gin-gonic/gin"
7 "github.com/iotbzh/xds-server/lib/xsapiv1"
10 // getInfo : return various information about server
11 func (s *APIService) getVersion(c *gin.Context) {
12 response := xsapiv1.Version{
13 ID: s.Config.ServerUID,
14 Version: s.Config.Version,
15 APIVersion: s.Config.APIVersion,
16 VersionGitTag: s.Config.VersionGitTag,
19 c.JSON(http.StatusOK, response)