SCRAPE-22: Implement rate limiting for trigger endpoint #26
Reference in New Issue
Block a user
No description provided.
Delete Branch "scraper/rate-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add per-user rate limiting to POST /api/admin/scraper/run (5 req/hr per admin). Returns 429 with Retry-After header when exceeded. In-memory tracking via Map keyed by user ID. Rate limit checked before mutex. Scheduled runs not counted. 6 new tests, 87 total scraperRoutes tests passing.