// NewHandler creates a new handler instance with the options provided.
NewHandler creates a new handler instance with the options provided.
// NewHandler creates a new handler instance with the options provided .
func NewHandler(log zerolog.Logger, db DB, es EmailSender, sm *sessionup.Manager, ss ...setter) *Handler {
	h := &Handler{
		log:   log,
		db:    db,
		email: es,
	}
	h.session.manager = sm
	h.Defaults()
	for _, s := range ss {
		s(h)
	}
	return h
}
func NewHandler ( log zerolog . Logger , db DB , es EmailSender , sm * sessionup . Manager , ss ... setter ) * Handler { h := & Handler { log : log , db : db , email : es , } h . session . manager = sm h . Defaults ( ) for _ , s := range ss { s ( h ) } return h }
NewHandler creates a new handler instance with the options provided.
NewHandler creates a new handler instance with the options provided .