store sessions in response
Signed-off-by: Michael <michael.lindman@gmail.com>
This commit is contained in:
parent
5769397142
commit
77ef521b91
3
go.mod
3
go.mod
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue