mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-24 21:24:43 +01:00
added sessions and flash storage
This commit is contained in:
3
route.go
3
route.go
@@ -14,12 +14,13 @@ type Route struct {
|
||||
Env string
|
||||
Middleware MiddlewareStack
|
||||
Logger *logrus.Logger
|
||||
app *App
|
||||
}
|
||||
|
||||
func (r *Route) ServeHTTP(res http.ResponseWriter, req *http.Request) {
|
||||
defer gcontext.Clear(req)
|
||||
|
||||
c := newContext(*r, res, req)
|
||||
c := r.app.newContext(*r, res, req)
|
||||
|
||||
err := r.Middleware.handler(r)(c)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user