Files
cachet-docker/routes/api.php
Laravel Shift e7b419c4fc Shift Routes
Laravel 5.3 now stores Routes in a top-level `routes` folder and
separates them into API, console, and web files.
2016-10-19 07:53:10 +00:00

19 lines
528 B
PHP
Executable File

<?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();
})->middleware('auth:api');