This commit is contained in:
Jay 2018-09-02 11:24:40 +08:00
parent 62ee753076
commit 4e929eacaa

View File

@ -26,7 +26,7 @@ func NewServ() *gin.Engine {
// enable cors
r.Use(cors.Default())
// session
r.Use(sessions.Sessions("gin:sess", store))
r.Use(sessions.Sessions("ginsess", store))
return r
}