[server] Ratelimit add device code API for cast

This commit is contained in:
Neeraj Gupta 2024-04-25 14:07:10 +05:30
parent 8038583d5a
commit 4694bf6b7e

View file

@ -150,6 +150,7 @@ func (r *RateLimitMiddleware) getLimiter(reqPath string, reqMethod string) *limi
reqPath == "/public-collection/verify-password" || reqPath == "/public-collection/verify-password" ||
reqPath == "/family/accept-invite" || reqPath == "/family/accept-invite" ||
reqPath == "/users/srp/attributes" || reqPath == "/users/srp/attributes" ||
(reqPath == "/cast/device-info/" && reqMethod == "POST") ||
reqPath == "/users/srp/verify-session" || reqPath == "/users/srp/verify-session" ||
reqPath == "/family/invite-info/:token" || reqPath == "/family/invite-info/:token" ||
reqPath == "/family/add-member" || reqPath == "/family/add-member" ||