Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #44 from bancodobrasil/fix_api_routes_group_middle…
Browse files Browse the repository at this point in the history
…ware

fix: api routes group middleware
  • Loading branch information
matheusromano authored Aug 10, 2022
2 parents e791c89 + 41c3dc4 commit 1349f8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions routes/apiRoutes.go

This file was deleted.

5 changes: 3 additions & 2 deletions routes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func SetupRoutes(router *gin.Engine) {
// APIRoutes define all api routes
func APIRoutes(router *gin.Engine) {
// inject middleware
router.Use(telemetry.Middleware("featws-api"))
api.Router(router.Group("/api"))
group := router.Group("/api")
group.Use(telemetry.Middleware("featws-api"))
api.Router(group)
}

0 comments on commit 1349f8c

Please sign in to comment.