mirror of
https://github.com/kubevela/kubevela.git
synced 2026-03-06 03:31:12 +00:00
18 lines
331 B
Go
18 lines
331 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"github.com/oam-dev/kubevela/pkg/server/apis"
|
|
"github.com/oam-dev/kubevela/version"
|
|
)
|
|
|
|
func (s *APIServer) GetVersion(c *gin.Context) {
|
|
c.JSON(http.StatusOK, apis.Response{
|
|
Code: http.StatusOK,
|
|
Data: map[string]string{"version": version.VelaVersion},
|
|
})
|
|
}
|