mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
16 lines
315 B
Go
16 lines
315 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("edition"),
|
|
Version: viper.GetString("version"),
|
|
}
|
|
HandleSuccessWithData(c, info)
|
|
}
|