Use rate limiter for API calls
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
a7dc6162fa
commit
5c30de517d
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ use Illuminate\Support\Facades\Route;
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:'.config('app.api_throttle_per_minute').',1']], function () {
|
Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], function () {
|
||||||
|
|
||||||
|
|
||||||
Route::get('/', function () {
|
Route::get('/', function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue