diff --git a/main.go b/main.go index 0cd8c2f..60185b5 100644 --- a/main.go +++ b/main.go @@ -13,14 +13,14 @@ import ( "github.com/gin-gonic/gin" ) -const SessionHeader = "slide-session" +const sessionHeader = "slide-session" func NewApp() *gin.Engine { r := gin.Default() store := sessions.NewCookieStore([]byte("secret")) - r.Use(sessions.Sessions(SessionHeader, store)) + r.Use(sessions.Sessions(sessionHeader, store)) r.LoadHTMLGlob("templates/*.tmpl") r.Static("/static", "./static")