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

@ -80,6 +80,8 @@ func HandleFrontLogin(w http.ResponseWriter, r *http.Request) {
// }
// state := models.InitState(cleanName)
state := models.MakeTestState()
// save state to cache
saveState(cleanName, state)
tmpl.ExecuteTemplate(w, "base", state)
}