Files
spa-api/routes/api.php

19 lines
504 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;
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!
|
*/
2016-07-24 22:17:23 -05:00
Route::get('/user', function (Request $request) {
return $request->user();
2016-07-14 09:36:17 -05:00
});