From 548f99013f876e7da6cd36c06c8bb9e5bccdc59d Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Mon, 30 Jan 2023 16:49:48 +0200 Subject: [PATCH] add taiwan's flag to the translation of README by #2043 --- README.md | 3 +-- README_ZH.md | 2 +- _examples/mvc/vuejs-todo-mvc/src/web/main.go | 5 +++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 58341fae..a587fa2d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ -# Iris Web Framework +# Iris Web Framework [![build status](https://img.shields.io/github/actions/workflow/status/kataras/iris/ci.yml?branch=master&style=for-the-badge)](https://github.com/kataras/iris/actions/workflows/ci.yml) [![view examples](https://img.shields.io/badge/examples%20-285-a83adf.svg?style=for-the-badge&logo=go)](https://github.com/kataras/iris/tree/master/_examples) [![chat](https://img.shields.io/gitter/room/iris_go/community.svg?color=cc2b5e&logo=gitter&style=for-the-badge)](https://gitter.im/iris_go/community) [![donate](https://img.shields.io/badge/support-Iris-blue.svg?style=for-the-badge&logo=paypal)](https://iris-go.com/donate) @@ -23,7 +23,6 @@ Iris is a fast, simple yet fully featured and very efficient web framework for G It provides a beautifully expressive and easy to use foundation for your next website or API. - ```go package main diff --git a/README_ZH.md b/README_ZH.md index bbb997ac..12ba034d 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -1,4 +1,4 @@ -# Iris Web Framework +# Iris Web Framework [Traditional Chinese (zht / zh-Hant)](README_ZH_HANT.md) diff --git a/_examples/mvc/vuejs-todo-mvc/src/web/main.go b/_examples/mvc/vuejs-todo-mvc/src/web/main.go index 8a2d54e6..ba653a80 100644 --- a/_examples/mvc/vuejs-todo-mvc/src/web/main.go +++ b/_examples/mvc/vuejs-todo-mvc/src/web/main.go @@ -30,6 +30,11 @@ func main() { // create a sub router and register the http controllers. todosRouter := app.Party("/todos") + // Register sessions handler. + // TodoController.Session will automatically + // filled with the current request's session. + todosRouter.Use(sess.Handler()) + // create our mvc application targeted to /todos relative sub path. todosApp := mvc.New(todosRouter)