mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 10:57:05 +00:00
Update to version 8.5.0 | NEW: MVC Output Result | Read HISTORY.md
Former-commit-id: 6a3579f2500fc715d7dc606478960946dcade61d
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"github.com/gorilla/securecookie"
|
||||
|
||||
"github.com/kataras/iris"
|
||||
"github.com/kataras/iris/middleware/logger"
|
||||
"github.com/kataras/iris/middleware/recover"
|
||||
"github.com/kataras/iris/sessions"
|
||||
"github.com/kataras/iris/websocket"
|
||||
)
|
||||
@@ -104,6 +106,10 @@ func (b *Bootstrapper) Bootstrap() *Bootstrapper {
|
||||
b.Favicon(StaticAssets + Favicon)
|
||||
b.StaticWeb(StaticAssets[1:len(StaticAssets)-1], StaticAssets)
|
||||
|
||||
// middleware, after static files
|
||||
b.Use(recover.New())
|
||||
b.Use(logger.New())
|
||||
|
||||
return b
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user