Files
crawlab/core/controllers/version.go
2024-06-14 15:42:50 +08:00

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