Installing and setting up a sessions package
This commit is contained in:
@ -1,9 +1,15 @@
|
||||
package config
|
||||
|
||||
import "html/template"
|
||||
import (
|
||||
"html/template"
|
||||
|
||||
"github.com/alexedwards/scs/v2"
|
||||
)
|
||||
|
||||
// AppConfig holds the application config
|
||||
type AppConfig struct {
|
||||
TemplateCahce map[string]*template.Template
|
||||
UseCache bool
|
||||
InProduction bool
|
||||
Session *scs.SessionManager
|
||||
}
|
||||
|
Reference in New Issue
Block a user