func New(handler http.Handler) http.Handler { n := nosurf.New(handler) n.SetFailureHandler(http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { b := base.New(rw, r, false) b.SetTitle("text11") b.RenderContentPart(vioTmpl, nil) b.Render() })) return n }
func New() http.Handler { return csrf.New(http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { c := &controller{base.New(rw, r, true, "controller/account"), nil, nil} c.serve() })) }
func New() http.Handler { return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { c := &controller{base.New(rw, r, true)} c.serve() }) }