1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

websocket: replace sync.Map with custom map[string]*connection. Add translate template function example. Fix ctx.HandlerName() does not return the end-dev-defined current route's name, this will give better warnings when using MVC in a wrong way

Former-commit-id: 38fda8a20da9bc7665cdd209b7b367c1337dbd94
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-01-25 23:47:31 +02:00
parent 443776c423
commit 680b5a0923
6 changed files with 59 additions and 61 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"github.com/kataras/iris"
"github.com/kataras/iris/middleware/recover"
"github.com/kataras/iris/sessions"
"github.com/kataras/iris/mvc"
@@ -11,6 +12,7 @@ import (
func main() {
app := iris.New()
app.Use(recover.New())
app.Logger().SetLevel("debug")
mvc.Configure(app.Party("/basic"), basicMVC)