web-api/routes/api.php
梁朝伟 7f3db2ed48 init
2024-11-13 19:23:49 +08:00

9 lines
186 B
PHP

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
Route::get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:sanctum');