Files
spa-api/routes/api.php

20 lines
566 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
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
2019-12-26 19:48:38 +01:00
Route::middleware('auth:api')->get('/user', function (Request $request) {
2016-07-24 22:17:23 -05:00
return $request->user();
2016-12-06 09:40:56 -06:00
});