Skip to content

Commit

Permalink
html response max 5 requests per day
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoclpf committed Jun 11, 2024
1 parent 2af5503 commit 9380eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/middlewares/rateLimiter.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = {
}

async function rateLimitFn (req, res) {
const maxRequestsPerDayForNormalUsers = 25
const maxRequestsPerDayForNormalUsers = isResponseJson(req) ? 25 : 5
const maxRequestsPerDayForPremiumUsers = 1000000

const apiAccessKey = getApiAccessKey(req)
Expand Down

0 comments on commit 9380eb4

Please sign in to comment.