feat(ratelimit): Add support for limits per ip address and auth token
This commit is contained in:
7 files changed
+958
-139
No files matched your search
@@ -74,7 +74,7 @@ func createMuxWithEndpoints(c *Controller, props HandlerProperties) (http.Handle
|
||||
}
|
||||
|
||||
mux := http.NewServeMux()
|
||||
mux.Handle("/v1/", ratelimit.Handler(c.rateLimiter, grpcGwMux))
|
||||
mux.Handle("/v1/", ratelimit.Handler(c.baseContext, c.rateLimiter, grpcGwMux))
|
||||
mux.Handle(uiPath, handleUi(c))
|
||||
|
||||
isUiRequest := func(req *http.Request) bool {
|
||||
|
||||
Reference in new issue
Block a user