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

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

No files matched your search

+3 -2
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');