Files
tecamino-driver-artNet/server/allBuses.go
2025-04-18 10:30:18 +02:00

19 lines
248 B
Go

package server
import (
"github.com/gin-gonic/gin"
)
func (s *Server) AllBuses(c *gin.Context) {
var data any
if s.Driver.Bus == nil {
data = "no buses avaiable"
} else {
data = s.Driver.Bus
}
c.JSON(200, gin.H{
"buses": data,
})
}