2017-08-27 04:44:53 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| API Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| is assigned the "api" middleware group. Enjoy building your API!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2019-02-26 22:46:40 +09:00
|
|
|
//Route::middleware('auth:api')->get('/user', function (Request $request) {
|
|
|
|
// return $request->user();
|
|
|
|
//});
|
2019-01-15 00:05:01 +09:00
|
|
|
|
2020-08-20 20:48:29 +09:00
|
|
|
Route::get('/checkin/card', 'Api\\CardController@show')
|
|
|
|
->middleware('throttle:180,1,card');
|
2019-04-05 23:07:43 +09:00
|
|
|
|
2020-08-20 20:48:29 +09:00
|
|
|
Route::middleware(['throttle:60,1', 'stateful', 'auth'])->group(function () {
|
2019-04-05 23:07:43 +09:00
|
|
|
Route::post('/likes', 'Api\\LikeController@store');
|
|
|
|
Route::delete('/likes/{id}', 'Api\\LikeController@destroy');
|
2019-04-06 00:28:44 +09:00
|
|
|
});
|
2020-07-19 18:39:19 +09:00
|
|
|
|
2020-07-19 23:04:10 +09:00
|
|
|
Route::post('/webhooks/checkin/{webhook}', 'Api\\WebhookController@checkin')
|
|
|
|
->middleware('throttle:15,15,checkin_webhook');
|