File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,11 +128,14 @@ ab.Config.Paths.Mount = "/authboss"
128128ab.Config .Paths .RootURL = " https://www.example.com/"
129129
130130// This is using the renderer from: github.com/volatiletech/authboss
131- ab.Config .Core .ViewRenderer = abrenderer.New (" /auth" )
131+ ab.Config .Core .ViewRenderer = abrenderer.NewHTML (" /auth" , " ab_views " )
132132// Probably want a MailRenderer here too.
133133
134- // Set up defaults for basically everything besides the ViewRenderer/MailRenderer in the HTTP stack
135- defaults.SetCore (&ab.Config , false )
134+
135+ // This instantiates and uses every default implementation
136+ // in the Config.Core area that exist in the defaults package.
137+ // Just a convenient helper if you don't want to do anything fancy.
138+ defaults.SetCore (&ab.Config , false , false )
136139
137140if err := ab.Init (); err != nil {
138141 panic (err)
You can’t perform that action at this time.
0 commit comments