ゲストアクセス時のレートリミットを厳しめにする

This commit is contained in:
shibafu 2020-08-25 22:07:54 +09:00
parent 032533666d
commit 95ed292f4f
2 changed files with 7 additions and 7 deletions

View File

@ -48,8 +48,6 @@ class Kernel extends HttpKernel
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
'throttle:60,1',
'auth',
]
];

View File

@ -15,12 +15,14 @@
// return $request->user();
//});
Route::get('/checkin/card', 'Api\\CardController@show')
->middleware('throttle:180,1,card');
Route::middleware('stateful')->group(function () {
Route::post('/likes', 'Api\\LikeController@store');
Route::delete('/likes/{id}', 'Api\\LikeController@destroy');
Route::get('/checkin/card', 'Api\\CardController@show')
->middleware('throttle:30|180,1,card');
Route::middleware(['throttle:60,1', 'auth'])->group(function () {
Route::post('/likes', 'Api\\LikeController@store');
Route::delete('/likes/{id}', 'Api\\LikeController@destroy');
});
});
Route::post('/webhooks/checkin/{webhook}', 'Api\\WebhookController@checkin')