mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
7 lines
184 B
JavaScript
7 lines
184 B
JavaScript
export async function toggleRateLimiting(page, enabled = true) {
|
|
await page.request.fetch('/api/config/ratelimit/enable', {
|
|
method: 'POST',
|
|
data: { value: enabled },
|
|
});
|
|
}
|