watchyourlan/internal/web/history.go
2023-10-06 13:36:11 +07:00

17 lines
343 B
Go

package web
import (
"net/http"
"github.com/aceberg/WatchYourLAN/internal/db"
"github.com/aceberg/WatchYourLAN/internal/models"
)
func historyHandler(w http.ResponseWriter, r *http.Request) {
var guiData models.GuiData
guiData.Config = AppConfig
guiData.Hist = db.SelectHist(AppConfig.DbPath)
execTemplate(w, "history", guiData)
}