add POST /api/webhooks/checkin/{id}

This commit is contained in:
shibafu
2020-07-19 23:04:10 +09:00
parent 5926c6e640
commit de07e950f2
6 changed files with 106 additions and 10 deletions

View File

@@ -17,9 +17,10 @@
Route::get('/checkin/card', 'Api\\CardController@show');
Route::middleware('auth')->group(function () {
Route::middleware(['stateful', 'auth'])->group(function () {
Route::post('/likes', 'Api\\LikeController@store');
Route::delete('/likes/{id}', 'Api\\LikeController@destroy');
});
Route::post('/webhooks/checkin/{webhook}', 'Api\\WebhookController@checkin');
Route::post('/webhooks/checkin/{webhook}', 'Api\\WebhookController@checkin')
->middleware('throttle:15,15,checkin_webhook');