ゲストアクセス時のレートリミットを厳しめにする
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user