mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
24 lines
392 B
Go
24 lines
392 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/config"
|
|
"github.com/gin-gonic/gin"
|
|
"net/http"
|
|
)
|
|
|
|
func GetVersion(c *gin.Context) {
|
|
HandleSuccessWithData(c, config.GetVersion())
|
|
}
|
|
|
|
func getVersionActions() []Action {
|
|
return []Action{
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "",
|
|
HandlerFunc: GetVersion,
|
|
},
|
|
}
|
|
}
|
|
|
|
var VersionController ActionController
|