mirror of
https://github.com/strapi/strapi.git
synced 2025-12-30 00:37:24 +00:00
Allow rate limiter's config to be overridden for specific routes
This commit is contained in:
parent
ae5010efc2
commit
3ed05d3286
@ -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);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user