2019-03-05 18:10:11 -03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
2020-07-29 12:07:37 -03:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2019-03-05 18:10:11 -03: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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-12-08 13:59:08 -03:00
|
|
|
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
2019-03-05 18:10:11 -03:00
|
|
|
return $request->user();
|
|
|
|
});
|