Skip to content

Commit

Permalink
Merge pull request #12375 from WalkingPizza/fix/up-middleware-config-…
Browse files Browse the repository at this point in the history
…override

Allow U&P rate limiter's config to be overridden for specific routes
  • Loading branch information
derrickmehaffy committed Mar 8, 2022
2 parents 7b4d0e0 + bf87b56 commit 0ccf5f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ module.exports = (config, { strapi }) => async (ctx, next) => {
prefixKey: `${ctx.request.path}:${ctx.request.ip}`,
message,
},
strapi.config.get('plugin.users-permissions.ratelimit')
strapi.config.get('plugin.users-permissions.ratelimit'),
config
)
)(ctx, next);
};

0 comments on commit 0ccf5f4

Please sign in to comment.