Stack of changes to get gin, scs, nosurf running.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user