Skip to content

Commit

Permalink
fixup! fixup! feat(ratelimit): setup rate limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
olexsmir committed Oct 17, 2024
1 parent b1a6027 commit a4c1cfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/transport/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ func (t *Transport) Handler() http.Handler {
gin.Recovery(),
reqid.Middleware(),
t.logger(),
ratelimit.MiddlewareWithConfig(t.ratelimitCfg),
)

api := r.Group("/api", ratelimit.MiddlewareWithConfig(t.ratelimitCfg))
api := r.Group("/api")
api.GET("/ping", t.pingHandler)
apiv1.NewAPIV1(t.usersrv, t.notesrv).Routes(api.Group("/v1"))

Expand Down

0 comments on commit a4c1cfd

Please sign in to comment.