mirror of
https://github.com/kataras/iris.git
synced 2026-02-28 05:26:00 +00:00
update the documents for the new MVC API and some of its new features but not finished yet, README big examples and _examples/mvc/login is are yet updated and I'm thinking of removing the big examples on README.md, they exist on the _examples/mvc updated.
Former-commit-id: c2938d4bcaa3520744526f7975ee3cce632499b3
This commit is contained in:
@@ -267,8 +267,7 @@ type Context interface {
|
||||
// Although `BeginRequest` should NOT be used to call other handlers,
|
||||
// the `BeginRequest` has been introduced to be able to set
|
||||
// common data to all method handlers before their execution.
|
||||
// Controllers can accept middleware(s) from the `app.Controller`
|
||||
// function.
|
||||
// Controllers can accept middleware(s) from the MVC's Application's Router as normally.
|
||||
//
|
||||
// That said let's see an example of `ctx.Proceed`:
|
||||
//
|
||||
@@ -279,7 +278,6 @@ type Context interface {
|
||||
// })
|
||||
//
|
||||
// func (c *UsersController) BeginRequest(ctx iris.Context) {
|
||||
// c.C.BeginRequest(ctx) // call the parent's base controller BeginRequest first.
|
||||
// if !ctx.Proceed(authMiddleware) {
|
||||
// ctx.StopExecution()
|
||||
// }
|
||||
@@ -1055,8 +1053,7 @@ func (ctx *context) HandlerIndex(n int) (currentIndex int) {
|
||||
// Although `BeginRequest` should NOT be used to call other handlers,
|
||||
// the `BeginRequest` has been introduced to be able to set
|
||||
// common data to all method handlers before their execution.
|
||||
// Controllers can accept middleware(s) from the `app.Controller`
|
||||
// function.
|
||||
// Controllers can accept middleware(s) from the MVC's Application's Router as normally.
|
||||
//
|
||||
// That said let's see an example of `ctx.Proceed`:
|
||||
//
|
||||
@@ -1067,7 +1064,6 @@ func (ctx *context) HandlerIndex(n int) (currentIndex int) {
|
||||
// })
|
||||
//
|
||||
// func (c *UsersController) BeginRequest(ctx iris.Context) {
|
||||
// c.C.BeginRequest(ctx) // call the parent's base controller BeginRequest first.
|
||||
// if !ctx.Proceed(authMiddleware) {
|
||||
// ctx.StopExecution()
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user