Files
kubevela/pkg/server/handler/miscHandlers.go
2020-09-11 17:52:14 +08:00

18 lines
317 B
Go

package handler
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/oam-dev/kubevela/pkg/server/apis"
"github.com/oam-dev/kubevela/version"
)
func GetVersion(c *gin.Context) {
c.JSON(http.StatusOK, apis.Response{
Code: http.StatusOK,
Data: map[string]string{"version": version.VelaVersion},
})
}