mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
16 lines
325 B
Go
16 lines
325 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/entity"
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
func GetSystemInfo(c *gin.Context) {
|
|
info := &entity.SystemInfo{
|
|
Edition: viper.GetString("info.edition"),
|
|
Version: viper.GetString("info.version"),
|
|
}
|
|
HandleSuccessWithData(c, info)
|
|
}
|