Feat: save/load state

This commit is contained in:
Grail Finder
2025-05-05 06:55:33 +03:00
parent ca9b077070
commit 5e92523dcd
4 changed files with 44 additions and 3 deletions

View File

@ -2,7 +2,6 @@ package handlers
import (
"golias/config"
"golias/models"
"golias/pkg/cache"
"html/template"
"log/slog"
@ -57,6 +56,7 @@ func HandleHome(w http.ResponseWriter, r *http.Request) {
// tmpl.ExecuteTemplate(w, "room", userState)
// return
// }
userState := models.MakeTestState()
// userState := models.MakeTestState()
userState, _ := getStateByCtx(r.Context())
tmpl.ExecuteTemplate(w, "base", userState)
}