Closed Ankur1493 closed 3 months ago
Merging this as is but ideally we should make the ratelimitter more generic
Should take a key
as an input and not the userId
there might be a different route we might have to protect in the future. Both of these will start to override each other
/bounty $15
used ioredis, to add rateLimiting, now user will be able to only submit 1 req per 10seconds, you can change that frequency if you want from api/submissions/route.ts
fixes #2