Merge pull request #498 from shikorism/fix/card-throttle-in-guest

ゲストアクセス時のレートリミットを厳しめにする
This commit is contained in:
shibafu 2020-08-25 22:29:34 +09:00 committed by GitHub
commit 0bc546ac64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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')