1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00
Former-commit-id: 592e9cddf3511fc08e87f19ad39fdaac479b453f
This commit is contained in:
Frédéric Meyer
2018-02-21 08:18:53 +03:00
parent c0e0886cb9
commit 66209cae4f
6 changed files with 81 additions and 7 deletions

View File

@@ -176,6 +176,13 @@ func (app *Application) Handle(controller interface{}) *Application {
return app
}
// Fallback is an alias to `app.Router.Fallback(handlers...)`
//
// See `core/router#Party.Fallback`
func (app *Application) Fallback(handlers ...context.Handler) {
app.Router.Fallback(handlers...)
}
// Clone returns a new mvc Application which has the dependencies
// of the current mvc Mpplication's dependencies.
//