store sessions in response

Signed-off-by: Michael <michael.lindman@gmail.com>
This commit is contained in:
Michael 2021-04-17 23:18:02 +01:00
parent 5769397142
commit 77ef521b91
2 changed files with 7 additions and 7 deletions

3
go.mod
View File

@ -6,7 +6,6 @@ require (
github.com/gorilla/csrf v1.7.0
github.com/gorilla/mux v1.8.0
github.com/sirupsen/logrus v1.8.1
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4 // indirect
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
golang.org/x/sys v0.0.0-20210415045647-66c3f260301c // indirect
google.golang.org/protobuf v1.26.0
)

View File

@ -39,11 +39,12 @@ func (re *Router) Router() *mux.Router {
// Response HTTP Response
type Response struct {
Title string
Vars map[string]string
Query url.Values
Body interface{}
Status Status
Title string
Vars map[string]string
Query url.Values
Session map[interface{}]interface{}
Body interface{}
Status Status
}
// Status HTTP Status Code