Skip to content

Commit 4d72929

Browse files
committed
Merge branch 'jakha/patch-1' into dev
2 parents 960b2df + 1e7cb34 commit 4d72929

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,14 @@ ab.Config.Paths.Mount = "/authboss"
128128
ab.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

137140
if err := ab.Init(); err != nil {
138141
panic(err)

0 commit comments

Comments
 (0)