mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 13:05:56 +00:00
example: write our own customized router using the high-level API which gives access to the correct context and routes
Former-commit-id: d2369c20490619cad0dd6f7b6ed01cdbef51a853
This commit is contained in:
2
iris.go
2
iris.go
@@ -761,7 +761,7 @@ func (app *Application) Build() error {
|
||||
// create the request handler, the default routing handler
|
||||
routerHandler := router.NewDefaultHandler()
|
||||
|
||||
rp.Describe("router: %v", app.Router.BuildRouter(app.ContextPool, routerHandler, app.APIBuilder))
|
||||
rp.Describe("router: %v", app.Router.BuildRouter(app.ContextPool, routerHandler, app.APIBuilder, false))
|
||||
// re-build of the router from outside can be done with;
|
||||
// app.RefreshRouter()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user