Stack of changes to get gin, scs, nosurf running.

This commit is contained in:
2025-10-28 11:56:42 +00:00
parent 07117ba35e
commit 86be6479f1
65 changed files with 1890 additions and 1503 deletions

View File

@@ -1,11 +1,19 @@
package handlers
package templateHandler
import "synlotto-website/internal/platform/config"
import (
"synlotto-website/internal/platform/config"
"github.com/alexedwards/scs/v2"
)
type Handler struct {
cfg config.Config
cfg config.Config
Sessions *scs.SessionManager
}
func New(cfg config.Config) *Handler {
return &Handler{cfg: cfg}
func New(cfg config.Config, sessions *scs.SessionManager) *Handler {
return &Handler{
cfg: cfg,
Sessions: sessions,
}
}