1
0
Fork 0
mirror of https://github.com/prurigro/hypothetical.git synced 2025-01-09 08:16:30 -05:00
hypothetical/routes/api.php

19 lines
528 B
PHP
Raw Normal View History

2016-08-19 16:38:49 -04:00
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
Route::get('/user', function (Request $request) {
return $request->user();
2016-08-22 14:34:21 -04:00
})->middleware('auth:api');