From edc81c0a63f7aa1faf7e049a75b79c2505804ab9 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Thu, 20 Oct 2022 02:00:25 +0300 Subject: [PATCH] add brazil readme link --- README.md | 2 +- iris_guide.go | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dc8bea7d..2aea3d61 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ -# Iris Web Framework +# Iris Web Framework [![build status](https://img.shields.io/github/workflow/status/kataras/iris/CI/master?style=for-the-badge)](https://github.com/kataras/iris/actions) [![view examples](https://img.shields.io/badge/examples%20-270-a83adf.svg?style=for-the-badge&logo=go)](https://github.com/kataras/iris/tree/master/_examples) [![chat](https://img.shields.io/gitter/room/iris_go/community.svg?color=cc2b5e&logo=gitter&style=for-the-badge)](https://gitter.im/iris_go/community) [![donate](https://img.shields.io/badge/support-Iris-blue.svg?style=for-the-badge&logo=paypal)](https://iris-go.com/donate) diff --git a/iris_guide.go b/iris_guide.go index f245bb55..f2d6abea 100644 --- a/iris_guide.go +++ b/iris_guide.go @@ -433,11 +433,7 @@ func (s *step7) Build() *Application { app.Macros().SetErrorHandler(errors.DefaultPathParameterTypeErrorHandler) app.UseRouter(recover.New()) - - for _, routerLevelMiddleware := range s.step6.step5.routerMiddlewares { - app.UseRouter(routerLevelMiddleware) - } - + app.UseRouter(s.step6.step5.routerMiddlewares...) app.UseRouter(func(ctx Context) { ctx.Header("Server", "Iris") if dev := s.step6.step5.step4.step3.developer; dev != "" {