32 lines
670 B
Go
32 lines
670 B
Go
|
package api
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
type OverviewItem struct {
|
||
|
InternetMode string `json:"internetMode"`
|
||
|
WifiMode5Ghz string `json:"wifiMode5Ghz"`
|
||
|
WifiMode2Ghz string `json:"wifiMode2Ghz"`
|
||
|
Devices int `json:"devices"`
|
||
|
FileShare string `json:"fileShare"`
|
||
|
Qos string `json:"qos"`
|
||
|
GuestNetwork string `json:"guestNetwork"`
|
||
|
}
|
||
|
|
||
|
var overviewItems = OverviewItem{
|
||
|
InternetMode: "LAN4",
|
||
|
WifiMode5Ghz: "On",
|
||
|
WifiMode2Ghz: "Off",
|
||
|
Devices: 0,
|
||
|
FileShare: "Offline",
|
||
|
Qos: "Online",
|
||
|
GuestNetwork: "Offline",
|
||
|
}
|
||
|
|
||
|
|
||
|
func GetOverviewItems(context *gin.Context) {
|
||
|
context.JSON(http.StatusOK, overviewItems)
|
||
|
}
|