Skip to content

Instantly share code, notes, and snippets.

@maxca
Created May 31, 2018 01:36
Show Gist options
  • Select an option

  • Save maxca/4735960d3b40bc2dea012e2464ca6612 to your computer and use it in GitHub Desktop.

Select an option

Save maxca/4735960d3b40bc2dea012e2464ca6612 to your computer and use it in GitHub Desktop.
<?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');
# Blog
require app_path() . '/Http/Routes/API/Blog/BlogRoute.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment