1
0
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:
Gerasimos (Makis) Maropoulos
2018-10-02 06:36:51 +03:00
parent 97e96ed6ca
commit 120b5fb635
9 changed files with 138 additions and 27 deletions

View File

@@ -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()
}