Feat: save/load state
This commit is contained in:
		| @@ -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) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder