feat(ratelimit): Add support for limits per ip address and auth token

This commit is contained in:
Timothy Messier committed 2023-12-04 16:24:00 +00:00
1 parent 00bd2899af
commit 059d4992de
7 files changed
+958 -139

No files matched your search

+1 -1
View File
@@ -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 {