Files
spa-api/routes/api.php

20 lines
570 B
PHP
Raw Normal View History

2016-07-14 09:36:17 -05:00
<?php
2016-07-24 22:17:23 -05:00
use Illuminate\Http\Request;
2019-12-20 15:10:23 -06:00
use Illuminate\Support\Facades\Route;
2016-07-24 22:17:23 -05:00
2016-07-14 09:36:17 -05:00
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
2023-01-25 18:07:48 +00:00
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
2016-07-14 09:36:17 -05:00
|
*/
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
2016-07-24 22:17:23 -05:00
return $request->user();
2016-12-06 09:40:56 -06:00
});