patchman/client/api/osInfo.go

14 lines
192 B
Go

package api
import (
"git.jmbit.de/jmb/patchman/client/utils"
"github.com/gin-gonic/gin"
)
func getOSInfo(c *gin.Context) {
c.JSON(200, utils.GetOSInfo())
}
//TODO add update mechanism