- 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.
10 lines
162 B
PHP
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),
|
|
],
|
|
];
|