mirror of
https://github.com/kubevela/kubevela.git
synced 2026-03-05 19:22:03 +00:00
19 lines
379 B
Go
19 lines
379 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"
|
|
)
|
|
|
|
// GetVersion will return version for dashboard
|
|
func (s *APIServer) GetVersion(c *gin.Context) {
|
|
c.JSON(http.StatusOK, apis.Response{
|
|
Code: http.StatusOK,
|
|
Data: map[string]string{"version": version.VelaVersion},
|
|
})
|
|
}
|