watchyourlan/internal/web/index.go
2023-10-05 23:53:47 +07:00

18 lines
289 B
Go

package web
import (
"net/http"
"github.com/aceberg/WatchYourLAN/internal/models"
)
func indexHandler(w http.ResponseWriter, r *http.Request) {
var guiData models.GuiData
updateAllHosts()
guiData.Config = AppConfig
guiData.Hosts = AllHosts
execTemplate(w, "index", guiData)
}