tissue/routes/api.php

23 lines
734 B
PHP
Raw Normal View History

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!
|
*/
//Route::middleware('auth:api')->get('/user', function (Request $request) {
// return $request->user();
//});
2019-01-15 00:05:01 +09:00
Route::get('/checkin/card', 'Api\\CardController@show');
2019-04-05 23:07:43 +09:00
Route::middleware('auth')->group(function () {
Route::post('/likes', 'Api\\LikeController@store');
Route::delete('/likes/{id}', 'Api\\LikeController@destroy');
});