Share version between API and fn tool (#525)

This commit is contained in:
Travis Reeder
2017-02-15 21:26:45 -08:00
committed by GitHub
parent 2890b909b1
commit 7f7d99feb4
4 changed files with 10 additions and 8 deletions

View File

@@ -4,11 +4,9 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/iron-io/functions/api/version"
)
// Version of IronFunctions
var Version = "0.2.17"
func handleVersion(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"version": Version})
c.JSON(http.StatusOK, gin.H{"version": version.Version})
}

4
api/version/version.go Normal file
View File

@@ -0,0 +1,4 @@
package version
// Version of IronFunctions
var Version = "0.2.16"