mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
18 lines
266 B
Go
18 lines
266 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/spf13/viper"
|
|
"net/http"
|
|
)
|
|
|
|
func GetVersion(c *gin.Context) {
|
|
version := viper.GetString("version")
|
|
|
|
c.JSON(http.StatusOK, Response{
|
|
Status: "ok",
|
|
Message: "success",
|
|
Data: version,
|
|
})
|
|
}
|