ldc-boutique-cnc/routes/api.php

20 lines
598 B
PHP
Raw Normal View History

2020-10-30 17:26:00 +01:00
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
2022-08-25 12:26:43 +02: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!
|
2020-10-30 17:26:00 +01:00
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});