このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
076server/routes/api.php

20 行
566 B
PHP
Raw 通常表示 履歴

2018-01-24 00:25:04 +09:00
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
2018-01-24 00:25:04 +09:00
/*
|--------------------------------------------------------------------------
| 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();
});