mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Share version between API and fn tool (#525)
This commit is contained in:
@@ -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
4
api/version/version.go
Normal file
@@ -0,0 +1,4 @@
|
||||
package version
|
||||
|
||||
// Version of IronFunctions
|
||||
var Version = "0.2.16"
|
||||
Reference in New Issue
Block a user