some changes
All checks were successful
Build Slideshow App / build (amd64, .exe, windows) (push) Successful in 2m0s
Build Slideshow App / build (amd64, , linux) (push) Successful in 2m20s
Build Slideshow App / build (arm, 7, , linux) (push) Successful in 1m57s
Build Slideshow App / build (arm64, , linux) (push) Successful in 1m58s

This commit is contained in:
Adrian Zürcher
2026-01-31 20:37:03 +01:00
parent 5e551b4eaf
commit e05c3a06ae
2 changed files with 6 additions and 11 deletions

View File

@@ -35,19 +35,10 @@ func getActiveIP() string {
func InfoHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
port := env.Port.GetValue()
if port == "" {
port = "8080"
}
speed := env.IntervalDefault.GetValue()
if speed == "" {
speed = "10"
}
data := map[string]string{
"ip": GetLocalIP(),
"port": port,
"port": env.Port.GetValue(),
"speed": GetInterval(),
}
err := json.NewEncoder(w).Encode(data)