mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-30 16:18:40 +01:00
added sessions and flash storage
This commit is contained in:
@@ -22,6 +22,11 @@ type DefaultRouter struct {
|
||||
Routes []*Route
|
||||
StaticRoutes []*StaticRoute
|
||||
Options *RouterOptions
|
||||
app *App
|
||||
}
|
||||
|
||||
func (r *DefaultRouter) SetApp(app *App) {
|
||||
r.app = app
|
||||
}
|
||||
|
||||
func (r *DefaultRouter) GET(path string, h Handler) {
|
||||
@@ -67,6 +72,7 @@ func (r *DefaultRouter) addRoute(m, p string, h Handler) {
|
||||
Env: r.Options.Env,
|
||||
Middleware: r.Options.MiddlewareStack,
|
||||
Logger: r.Options.Logger,
|
||||
app: r.app,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user