mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
add taiwan's flag to the translation of README by #2043
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user