ldc-arcadia-api/config/throttles.php
Jérémy Munsch a93fde3a3c
feat(api): implement rate limiting and error handling
- Added rate limiting for web and API requests.
- Introduced custom error handling for "Too Many Requests" response.
- Created view for "Too Many Requests" error documentation.
2026-08-12 17:25:45 +02:00

10 lines
162 B
PHP

<?php
declare(strict_types=1);
return [
'web' => (int) env('THROTTLE_WEB', 120),
'api' => [
'v1' => (int) env('THROTTLE_API_V1', 60),
],
];