This commit is contained in:
parent
e30046cadd
commit
c9f06518c1
|
|
@ -107,8 +107,6 @@ func NewApp(options AppOptions) *App {
|
||||||
options: options,
|
options: options,
|
||||||
}
|
}
|
||||||
|
|
||||||
var backend *memoryBackend
|
|
||||||
|
|
||||||
app.backend = loadMemoryBackend()
|
app.backend = loadMemoryBackend()
|
||||||
app.backend.AuthEnabled = options.AuthEnabled
|
app.backend.AuthEnabled = options.AuthEnabled
|
||||||
|
|
||||||
|
|
@ -130,7 +128,7 @@ func NewApp(options AppOptions) *App {
|
||||||
})
|
})
|
||||||
|
|
||||||
if !options.Headless {
|
if !options.Headless {
|
||||||
handler, err := newMainHandler(backend, options.BaseURL, options.TemplateDir)
|
handler, err := newMainHandler(app.backend, options.BaseURL, options.TemplateDir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user